public async Task <Response> SendAsync(Request request) { var message = _httpPipelineTransport.CreateMessage(request); await IHttpPipelinePolicy.ProcessNextAsync(message, _policies); return(message.Response); }
public async Task <Response <TResponseModel> > SendAsync <TResponseModel>(Request <TResponseModel> request) where TResponseModel : class { var message = _httpPipelineTransport.CreateMessage(request); await IHttpPipelinePolicy.ProcessNextAsync(message, _policies); return(new Response <TResponseModel>(message.Response)); }