Пример #1
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));
 }
Пример #2
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));
        }
Пример #3
0
 public static Task <OutpT> RunHttpRequest <InpT1, InpT2, OutpT>(
     this IHttpRequester r,
     string interfaceName, string methodName, Func <string, OutpT> deserialize, InpT1 inp1, InpT2 inp2)
 {
     return(r.RunHttpRequest(interfaceName, methodName, deserialize, Tuple.Create(inp1, inp2)));
 }
Пример #4
0
 public static Task <OutpT> RunHttpRequest <OutpT>(this IHttpRequester r,
                                                   string interfaceName, string methodName, Func <string, OutpT> deserialize)
 {
     return(r.RunHttpRequest(interfaceName, methodName, deserialize, ""));
 }
Пример #5
0
 public static async Task <OutpT> RunHttpRequestReturningPlain <OutpT>(
     this IHttpRequester r,
     string interfaceName, string methodName)
 {
     return(await r.RunHttpRequest(interfaceName, methodName, x => r.NullAwareJsonParse <OutpT>(x)));
 }
Пример #6
0
 public static async Task <OutpT> RunHttpRequestReturningPlain <InpT1, InpT2, InpT3, OutpT>(
     this IHttpRequester r,
     string interfaceName, string methodName, InpT1 inp1, InpT2 inp2, InpT3 inp3)
 {
     return(await r.RunHttpRequest(interfaceName, methodName, x => r.NullAwareJsonParse <OutpT>(x), inp1, inp2, inp3));
 }