Class Operations
public sealed class Operations
- Inheritance
-
Operations
- Inherited Members
Constructors
Operations(ApiClient)
public Operations(ApiClient apiClient)
Parameters
apiClientApiClient
Methods
GetAsync<TOperation>(TOperation, GetOperationConfig?, CancellationToken)
Gets the status of a long-running operation.
public Task<TOperation> GetAsync<TOperation>(TOperation operation, GetOperationConfig? config, CancellationToken cancellationToken = default) where TOperation : Operation<TOperation>
Parameters
operationTOperationAn operation instance to get the status for.
configGetOperationConfigA GetOperationConfig instance that specifies the optional configurations.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
- Task<TOperation>
A Task<TResult> that represents the asynchronous operation. The task result contains the updated
TOperationinstance with the latest status or result.
Type Parameters
TOperationThe type of the operation.