Ejemplo n.º 1
0
 protected internal virtual void OnSendingRequest(object sender, ISendingRequestEventArgs <TService> e)
 {
     if (!Enabled)
     {
         return;
     }
     SendingRequest?.Invoke(sender, e);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Raises the <see cref="SendingRequest"/> event.
 /// </summary>
 /// <param name="requestMessage">The <see cref="HttpRequestMessage"/>.</param>
 protected virtual void OnSendingRequest(HttpRequestMessage requestMessage)
 {
     SendingRequest?.Invoke(this, new OdmRequestMessageEventArgs(requestMessage));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Raises the <see cref="SendingRequest"/> event.
 /// </summary>
 /// <remarks>
 /// Called when a request is being sent.
 /// </remarks>
 /// <param name="args">A <see cref="SendingRequestEventArgs"/> that contains the event data.</param>
 /// <seealso cref="SendingRequest"/>
 protected virtual void OnSendingRequest(SendingRequestEventArgs args)
 {
     SendingRequest?.Invoke(this, args);
 }
Ejemplo n.º 4
0
 internal void OnSendingRequest(RestClient client, RestCallData callData)
 {
     SendingRequest?.Invoke(client, new RestClientEventArgs(callData));
 }