Пример #1
0
 /// <summary>
 ///     Method invoked after deserializing a <see cref="SoapEnvelope" /> from the server response.
 ///     Useful to validate properties like <see cref="SoapHeader" />.
 /// </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 OnSoapEnvelopeResponseAsync(ISoapClient client,
                                               OnSoapEnvelopeResponseArguments arguments, CancellationToken ct)
 {
     if (OnSoapEnvelopeResponseAsyncAction != null)
     {
         await OnSoapEnvelopeResponseAsyncAction(client, arguments, ct);
     }
 }
Пример #2
0
 /// <summary>
 ///     Method invoked after deserializing a <see cref="SoapEnvelope" /> from the server response.
 ///     Useful to validate properties like <see cref="SoapHeader" />.
 /// </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 OnSoapEnvelopeResponseAsync(ISoapClient client, OnSoapEnvelopeResponseArguments arguments, CancellationToken ct)
 {
     return(Task.FromResult(true));
 }
Пример #3
0
 /// <summary>
 ///     Method invoked after deserializing a <see cref="SoapEnvelope" /> from the server response.
 ///     Useful to validate properties like <see cref="SoapHeader" />.
 /// </summary>
 /// <param name="client">The client sending the request</param>
 /// <param name="arguments">The method arguments</param>
 public virtual void OnSoapEnvelopeResponse(ISoapClient client, OnSoapEnvelopeResponseArguments arguments)
 {
 }
Пример #4
0
 /// <summary>
 ///     Method invoked after deserializing a <see cref="SoapEnvelope" /> from the server response.
 ///     Useful to validate properties like <see cref="SoapHeader" />.
 /// </summary>
 /// <param name="client">The client sending the request</param>
 /// <param name="arguments">The method arguments</param>
 public void OnSoapEnvelopeResponse(ISoapClient client, OnSoapEnvelopeResponseArguments arguments)
 {
     OnSoapEnvelopeResponseAction?.Invoke(client, arguments);
 }