Class BaseClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
Base class from which all Client classes inherit.
public abstract class BaseClient
- Inheritance
-
BaseClient
- Derived
- Inherited Members
Constructors
BaseClient(IManagementConnection, Uri, IDictionary<string, string>)
Initializes a new instance of BaseClient.
protected BaseClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)
Parameters
connection
IManagementConnectionIManagementConnection used to make all API calls.
baseUri
UriUri of the endpoint to use in making API calls.
defaultHeaders
IDictionary<string, string>Dictionary containing default headers included with every request this client makes.
Properties
BaseUri
Uri of the endpoint to use in making API calls.
protected Uri BaseUri { get; }
Property Value
Connection
IManagementConnection used to make all API calls.
protected IManagementConnection Connection { get; }
Property Value
DefaultHeaders
Default headers included with every request this client makes.
protected IDictionary<string, string> DefaultHeaders { get; }
Property Value
Methods
BuildUri(string, IDictionary<string, string>)
Build the Uri for this API request given a resource
and
queryStrings
.
protected Uri BuildUri(string resource, IDictionary<string, string> queryStrings = null)
Parameters
resource
stringName of the resource to be appended to the path.
queryStrings
IDictionary<string, string>Query strings that should be combined with the URL.
Returns
- Uri
Completed absolute URI for the request.
EncodePath(string)
Encode a value so it can be successfully used in the path.
protected string EncodePath(string value)
Parameters
value
stringValue to encode for the path.
Returns
- string
URI encoded/escaped value that can be used in the path.