Class LogStreamsClient
- Namespace
- Auth0.Management
Api .Clients
- Assembly
- Auth0.ManagementApi.dll
Contains methods to access the /log-streams endpoint
- Inheritance
-
Log
Streams Client
- Implements
- Inherited Members
Constructors
LogStreamsClient(IManagementConnection, Uri, IDictionary<string, string>)
Initializes a new instance of Log
public LogStreamsClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)
Parameters
connection
IManagementConnection IManagement
Connection 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.
Methods
CreateAsync(LogStreamCreateRequest, CancellationToken)
Creates a new log stream
public Task<LogStream> CreateAsync(LogStreamCreateRequest request, CancellationToken cancellationToken = default)
Parameters
request
LogStream Create Request The Log
Stream containing the information needed to create the log streamCreate Request cancellationToken
CancellationToken The cancellation token to cancel operation.
Returns
DeleteAsync(string, CancellationToken)
Deletes a log stream
Parameters
id
stringThe id of the log stream to delete
cancellationToken
CancellationToken The cancellation token to cancel operation.
Returns
GetAllAsync(CancellationToken)
Gets all of the log streams
Parameters
cancellationToken
CancellationToken
Returns
GetAsync(string, CancellationToken)
Gets a log stream
Parameters
id
stringThe id of the log stream to get
cancellationToken
CancellationToken The cancellation token to cancel operation.
Returns
UpdateAsync(string, LogStreamUpdateRequest, CancellationToken)
Updates a log stream
public Task<LogStream> UpdateAsync(string id, LogStreamUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
id
stringThe id of the log stream to update
request
LogStream Update Request The information required to update the log stream
cancellationToken
CancellationToken The cancellation token to cancel operation.