Beispiel #1
0
        /// <summary>
        /// Build FluentHttpRequestBuilder and  call returned FluentHttpRequest's FluentHttpClient SendAsync method.
        /// </summary>
        /// <typeparam name="T">Return type</typeparam>
        /// <param name="builder">FluentHttpRequest</param>
        /// <returns>T</returns>
        public static async Task <T> SendAsync <T>(this FluentHttpRequestBuilder builder)
        {
            var request = builder.Build();

            return(await SendAsync <T>(request));
        }
 /// <inheritdoc />
 public Task <FluentHttpResponse> Send(FluentHttpRequestBuilder builder)
 {
     return(Send(builder.Build()));
 }