Interface IAuthenticationConnection
- Namespace
- Auth0.AuthenticationApi
- Assembly
- Auth0.AuthenticationApi.dll
Interface used to customize implementation or mock behavior of AuthenticationApiClient.
public interface IAuthenticationConnection
Methods
GetAsync<T>(Uri, IDictionary<string, string>, CancellationToken)
Send a HTTP GET request to the given uri with optional headers as
an asynchronous operation.
Task<T> GetAsync<T>(Uri uri, IDictionary<string, string> headers = null, CancellationToken cancellationToken = default)
Parameters
uriUriAbsolute Uri to send the request to.
headersIDictionary<string, string>Optional dictionary containing additional headers to be sent.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<T>
The task object representing the asynchronous operation.
Type Parameters
TType of object to deserialize the result into.
SendAsync<T>(HttpMethod, Uri, object, IDictionary<string, string>, CancellationToken)
Send an HTTP request to uri using the HTTP method as an asynchronous operation.
Task<T> SendAsync<T>(HttpMethod method, Uri uri, object body, IDictionary<string, string> headers = null, CancellationToken cancellationToken = default)
Parameters
methodHttpMethodHttpMethod to use.
uriUriAbsolute Uri to send the request to.
bodyobjectBody of the HTTP request that will be sent.
headersIDictionary<string, string>Optional dictionary containing additional headers to be sent.
cancellationTokenCancellationTokenThe cancellation token to cancel operation.
Returns
- Task<T>
The task object representing the asynchronous operation.
Type Parameters
TType of object to deserialize the result into.