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
uri
UriAbsolute Uri to send the request to.
headers
IDictionary<string, string>Optional dictionary containing additional headers to be sent.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<T>
The task object representing the asynchronous operation.
Type Parameters
T
Type 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
method
HttpMethodHttpMethod to use.
uri
UriAbsolute Uri to send the request to.
body
objectBody of the HTTP request that will be sent.
headers
IDictionary<string, string>Optional dictionary containing additional headers to be sent.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<T>
The task object representing the asynchronous operation.
Type Parameters
T
Type of object to deserialize the result into.