Type/Module | Description |
Function or value | Description |
Full Usage:
DefaultMaxRetryCount
Returns: int
|
|
Full Usage:
executeConcurrentlyAsync ct container operation retryAttempts
Parameters:
CancellationToken
container : Container
operation : UpsertConcurrentlyOperation<'value, 'error>
retryAttempts : int
Returns: Task<CosmosResponse<UpsertConcurrentResult<'value, 'error>>>
|
|
|
|
|
|
|
|
|
|
Type extension | Description |
Full Usage:
this.ExecuteAsync
Parameters:
UpsertOperation<'T>
-
Upsert operation.
cancellationToken : CancellationToken
-
Cancellation token.
Returns: Task<CosmosResponse<UpsertResult<'T>>>
|
Executes an upsert operation safely and returns CosmosResponse{UpsertResult{T}}. Requires ETag to be set in ItemRequestOptions.
Extended Type:
|
Full Usage:
this.ExecuteConcurrentlyAsync
Parameters:
UpsertConcurrentlyOperation<'T, 'E>
-
Upsert operation.
maxRetryCount : int
-
Max retry count. Default is 10.
cancellationToken : CancellationToken
-
Cancellation token.
Returns: Task<CosmosResponse<UpsertConcurrentResult<'T, 'E>>>
|
Executes an upsert operation by applying change to item if exists and returns CosmosResponse{UpsertConcurrentResult{T, E}}.
Extended Type:
|
Full Usage:
this.ExecuteConcurrentlyAsync
Parameters:
UpsertConcurrentlyOperation<'T, 'E>
-
Upsert operation.
cancellationToken : CancellationToken
-
Cancellation token.
Returns: Task<CosmosResponse<UpsertConcurrentResult<'T, 'E>>>
|
Executes an upsert operation by applying change to item if exists and returns CosmosResponse{UpsertConcurrentResult{T, E}}.
Extended Type:
|
Full Usage:
this.ExecuteOverwriteAsync
Parameters:
UpsertOperation<'T>
-
Upsert operation
succsess : 'T -> 'Result
failure : CosmosException -> 'Result
-
Error transform if failure
cancellationToken : CancellationToken
-
Cancellation token
Returns: Task<CosmosResponse<'Result>>
|
Extended Type:
|
Full Usage:
this.ExecuteOverwriteAsync
Parameters:
UpsertOperation<'T>
-
Upsert operation.
cancellationToken : CancellationToken
-
Cancellation token.
Returns: Task<CosmosResponse<UpsertResult<'T>>>
|
Executes an upsert operation replacing existing item if it exists and returns CosmosResponse{UpsertResult{T}}.
Extended Type:
|
Full Usage:
this.PlainExecuteAsync
Parameters:
UpsertOperation<'T>
-
Upsert operation.
cancellationToken : CancellationToken
-
Cancellation token.
Returns: Task<ItemResponse<'T>>
|
Extended Type:
|