Esempio n. 1
0
        //RunHttpRequestReturningArray: params 5 to 0

        public static async Task <OutpT[]> RunHttpRequestReturningArray <InpT1, InpT2, InpT3, InpT4, InpT5, OutpT>(
            this IHttpRequester r,
            string interfaceName, string methodName, InpT1 inp1, InpT2 inp2, InpT3 inp3, InpT4 inp4, InpT5 inp5) where OutpT : new()
        {
            return(await r.RunHttpRequest(interfaceName, methodName, x => r.DeserializeObject <OutpT[]>(x), inp1, inp2, inp3, inp4, inp5));
        }
Esempio n. 2
0
 public static async Task <OutpT[]> RunHttpRequestReturningArray <InpT, OutpT>(
     this IHttpRequester r,
     string interfaceName, string methodName, InpT inp) where OutpT : new()
 {
     return(await r.RunHttpRequest(interfaceName, methodName, x => r.DeserializeObject <OutpT[]>(x), inp));
 }
Esempio n. 3
0
 private static T NullAwareJsonParse <T>(this IHttpRequester r, string input)
 {
     return("null".Equals(input) ? default(T) : r.DeserializeObject <T>(input));
 }