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