示例#1
0
        static RatelHttpHelpServer()
        {
            var ratelHttpHelp = RatelHttpHelp.Sington();

            ratelHttpHelp.Confkey_Headers();
            ratelHttpHelp.AddUrl("http://127.0.0.1:7891");
            ratelHttpHelp.AddUrl("http://127.0.0.1:7892");
            ratelHttpHelp.AddUrl("http://127.0.0.1:7893");
        }
示例#2
0
 public static async Task <string> GetValueAsync(string _businesstype, string _key)
 {
     return(await RatelHttpHelp.Sington().GetValue(_businesstype, _key));
 }
示例#3
0
 public static string GetValue(string _businesstype, string _key)
 {
     return(RatelHttpHelp.Sington().GetValue(_businesstype, _key).GetAwaiter().GetResult());
 }