/// <summary> /// 获取日志标记 /// </summary> /// <param name="action"></param> /// <returns></returns> public string GetCustomerData(System.Reflection.MethodInfo action) { string content = string.Empty; var queue = action.GetCustomAttributesData().Where(w => w.AttributeType == typeof(SysLogAttribute)).FirstOrDefault(); if (queue != null) { content = queue.ConstructorArguments.FirstOrDefault().Value.ToString(); } return(content); }