Пример #1
0
        private static async Task <HttpResponseMessage> Request(FullLog log)
        {
            Request             req = new Request(log, appkey, appsecret);
            HttpResponseMessage res = await client.PostAsJsonAsync("log", req);

            return(res);
        }
Пример #2
0
 public static async Task <HttpResponseMessage> Custom(FullLog log)
 {
     try {
         return(await Request(log));
     } catch (Exception ex) {
         if (debug)
         {
             Console.WriteLine(ex);
         }
         return(null);
     }
 }
Пример #3
0
 public static async Task <HttpResponseMessage> Info(Log log)
 {
     try {
         FullLog full = new FullLog(log, "info");
         return(await Request(full));
     } catch (Exception ex) {
         if (debug)
         {
             Console.WriteLine(ex);
         }
         return(null);
     }
 }