/// <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 OnSoapEnvelopeV1Dot2RequestAsync(ISoapClient client, OnSoapEnvelopeV1Dot2RequestArguments arguments, CancellationToken ct) { if (OnSoapEnvelopeV1Dot2RequestAsyncAction != null) { await OnSoapEnvelopeV1Dot2RequestAsyncAction(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 OnSoapEnvelopeV1Dot2RequestAsync(ISoapClient client, OnSoapEnvelopeV1Dot2RequestArguments 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 OnSoapEnvelopeV1Dot2Request(ISoapClient client, OnSoapEnvelopeV1Dot2RequestArguments 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 OnSoapEnvelopeV1Dot2Request(ISoapClient client, OnSoapEnvelopeV1Dot2RequestArguments arguments) { OnSoapEnvelopeV1Dot2RequestAction?.Invoke(client, arguments); }