コード例 #1
0
 /// <summary>
 /// Method invoked after receiving a <see cref="HttpResponseMessage"/> from the server.
 /// Useful to log the response or validate HTTP headers.
 /// </summary>
 /// <param name="client">The client sending the request</param>
 /// <param name="arguments">The method arguments</param>
 /// <param name="ct">The cancellation token</param>
 /// <returns>Task to be awaited</returns>
 public async Task OnHttpResponseAsync(ISoapClient client, OnHttpResponseArguments arguments, CancellationToken ct)
 {
     if (OnHttpResponseAsyncAction != null)
     {
         await OnHttpResponseAsyncAction(client, arguments, ct);
     }
 }
コード例 #2
0
 /// <summary>
 /// Method invoked after receiving a <see cref="HttpResponseMessage"/> from the server.
 /// Useful to log the response or validate HTTP headers.
 /// </summary>
 /// <param name="client">The client sending the request</param>
 /// <param name="arguments">The method arguments</param>
 /// <param name="ct">The cancellation token</param>
 /// <returns>Task to be awaited</returns>
 public virtual Task OnHttpResponseAsync(ISoapClient client, OnHttpResponseArguments arguments, CancellationToken ct)
 {
     return(Task.FromResult(true));
 }
コード例 #3
0
 /// <summary>
 /// Method invoked after receiving a <see cref="HttpResponseMessage"/> from the server.
 /// Useful to log the response or validate HTTP headers.
 /// </summary>
 /// <param name="client">The client sending the request</param>
 /// <param name="arguments">The method arguments</param>
 public virtual void OnHttpResponse(ISoapClient client, OnHttpResponseArguments arguments)
 {
 }
コード例 #4
0
 /// <summary>
 /// Method invoked after receiving a <see cref="HttpResponseMessage"/> from the server.
 /// Useful to log the response or validate HTTP headers.
 /// </summary>
 /// <param name="client">The client sending the request</param>
 /// <param name="arguments">The method arguments</param>
 public void OnHttpResponse(ISoapClient client, OnHttpResponseArguments arguments)
 {
     OnHttpResponseAction?.Invoke(client, arguments);
 }