/// <summary> /// Method invoked before serializing a <see cref="SoapEnvelope"/>. /// Useful to add 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 OnSoapEnvelopeV1Dot1RequestAsync(ISoapClient client, OnSoapEnvelopeV1Dot1RequestArguments arguments, CancellationToken ct) { if (OnSoapEnvelopeV1Dot1RequestAsyncAction != null) { await OnSoapEnvelopeV1Dot1RequestAsyncAction(client, arguments, ct); } }
/// <summary> /// Method invoked before serializing a <see cref="SoapEnvelope"/>. /// Useful to add 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 OnSoapEnvelopeV1Dot1RequestAsync(ISoapClient client, OnSoapEnvelopeV1Dot1RequestArguments arguments, CancellationToken ct) { return(Task.FromResult(true)); }
/// <summary> /// Method invoked before serializing a <see cref="SoapEnvelope"/>. /// Useful to add 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 OnSoapEnvelopeV1Dot1Request(ISoapClient client, OnSoapEnvelopeV1Dot1RequestArguments arguments) { }
/// <summary> /// Method invoked before serializing a <see cref="SoapEnvelope"/>. /// Useful to add properties like <see cref="SoapHeader"/>. /// </summary> /// <param name="client">The client sending the request</param> /// <param name="arguments">The method arguments</param> public void OnSoapEnvelopeV1Dot1Request(ISoapClient client, OnSoapEnvelopeV1Dot1RequestArguments arguments) { OnSoapEnvelopeV1Dot1RequestAction?.Invoke(client, arguments); }