/// <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);
     }
 }
Esempio n. 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));
 }
Esempio n. 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)
 {
 }
 /// <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);
 }