Exemplo n.º 1
0
 public static Task <U> HandleGet <T, U>(this HttpClient httpClient, ApiModel <T> model, ILogger logger) where T : IRequest, new()
     where U : IResponse, new()
 {
     return(HandleException(GetFunct <T, U>, model, httpClient, logger));
 }
Exemplo n.º 2
0
        public static Task <Response <bool> > HandleDelete <T>(this HttpClient httpClient, ApiModel <T> model, ILogger logger) where T : IRequest, new()

        {
            return(HandleException(DeleteFunct <T, Response <bool> >, model, httpClient, logger));
        }
Exemplo n.º 3
0
 public static Task <U> HandlePost <T, U>(this HttpClient httpClient, ApiModel <T> model, ILogger logger, FileParameter file = null) where T : IRequest, new()
     where U : IResponse, new()
 {
     return(file == null?HandleException(PostFunct <T, U>, model, httpClient, logger)
                : HandleException(PostFileFunct <T, U>, model, httpClient, logger, file));
 }