public OperationFilterExpression(OperationOption option, QueryKeyValuePair pair) { this.Option = option; this.Pair = pair; }
public static string ToDescriptionString(this OperationOption options) { DescriptionAttribute[] attributes = (DescriptionAttribute[])options.GetType().GetField(options.ToString()).GetCustomAttributes(typeof(DescriptionAttribute), false); return(attributes.Length > 0 ? attributes[0].Description : string.Empty); }
/// <summary> /// 调用计数器 /// </summary> /// <param name="opr"></param> /// <param name="identity"></param> /// <param name="remark"></param> public static void IncreaseCounter(OperationOption opr, ICredentials identity, string remark = "") { string url = IncreaseCounterUrl + "&eventName=" + opr.ToString() + "&Remark=" + HttpUtility.HtmlDecode(remark); Request(url, identity); }