Delegate InterceptRequestDelegate
A delegate for the asynchronous interception of a HttpRequestMessage and the return of a HttpResponseMessage using a SendRequestDelegate.
Assembly: WhenFresh.Api.Client.dll
Syntax
public delegate Task<HttpResponseMessage> InterceptRequestDelegate(SendRequestDelegate send, HttpRequestMessage request, CancellationToken cancellationToken = default)
Parameters
Returns
Constructors
InterceptRequestDelegate(object, IntPtr)
A delegate for the asynchronous interception of a HttpRequestMessage and the return of a HttpResponseMessage using a SendRequestDelegate.
Declaration
public InterceptRequestDelegate(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(SendRequestDelegate, HttpRequestMessage, CancellationToken, AsyncCallback, object)
A delegate for the asynchronous interception of a HttpRequestMessage and the return of a HttpResponseMessage using a SendRequestDelegate.
Declaration
public virtual IAsyncResult BeginInvoke(SendRequestDelegate send, HttpRequestMessage request, CancellationToken cancellationToken, AsyncCallback callback, object @object)
Parameters
Returns
EndInvoke(IAsyncResult)
A delegate for the asynchronous interception of a HttpRequestMessage and the return of a HttpResponseMessage using a SendRequestDelegate.
Declaration
public virtual Task<HttpResponseMessage> EndInvoke(IAsyncResult result)
Parameters
Returns
Invoke(SendRequestDelegate, HttpRequestMessage, CancellationToken)
A delegate for the asynchronous interception of a HttpRequestMessage and the return of a HttpResponseMessage using a SendRequestDelegate.
Declaration
public virtual Task<HttpResponseMessage> Invoke(SendRequestDelegate send, HttpRequestMessage request, CancellationToken cancellationToken = default)
Parameters
Returns