| Type/Module | Description |
|
A patch of an item of type
Each attempt reads the item, passes it to Update to compute the patch
operations, and applies them only if the item still has the eTag it was read with. After a precondition failure
(HTTP 412) the next attempt starts over with a fresh read. |
|
| Function or value | Description |
Full Usage:
executeConcurrentlyAsync ct container operation retryAttempts
Parameters:
CancellationToken
-
Cancellation token.
container : Container
-
Container that holds the item.
operation : PatchConcurrentlyOperation<'value, 'error>
-
Patch operation.
retryAttempts : int
-
Number of attempts left, including this one. Values below one make a single attempt.
Returns: Task<CosmosResponse<PatchConcurrentResult<'value, 'error>>>
|
|
|
|
|
|
|
Builds a PatchConcurrentlyOperation{T, E} whose successful result does not include the patched item.
|
|
|
| Type extension | Description | ||
Full Usage:
this.ExecuteAsync
Parameters:
PatchOperation<'T>
-
Patch operation.
cancellationToken : CancellationToken
-
Cancellation token.
Returns: Task<CosmosResponse<PatchResult<'T>>>
|
Executes a patch operation safely and returns CosmosResponse{PatchResult{T}}. Requires ETag to be set in PatchItemRequestOptions.
Extended Type:
|
||
Full Usage:
this.ExecuteConcurrentlyAsync
Parameters:
PatchConcurrentlyOperation<'T, 'E>
-
Patch operation.
maxRetryCount : int
-
Maximum number of attempts, including the first one, so 1 makes a single attempt without retrying.
Must be greater than zero. Default is 10.
cancellationToken : CancellationToken
-
Cancellation token.
Returns: Task<CosmosResponse<PatchConcurrentResult<'T, 'E>>>
|
Executes a patch operation by computing patch operations from the current item and returns CosmosResponse{PatchConcurrentResult{T, E}}.
Extended Type:
|
||
Full Usage:
this.ExecuteConcurrentlyAsync
Parameters:
PatchConcurrentlyOperation<'T, 'E>
-
Patch operation.
cancellationToken : CancellationToken
-
Cancellation token.
Returns: Task<CosmosResponse<PatchConcurrentResult<'T, 'E>>>
|
Executes a patch operation by computing patch operations from the current item and returns CosmosResponse{PatchConcurrentResult{T, E}}. Makes at most 10 attempts, including the first one.
Extended Type:
|
||
Full Usage:
this.ExecuteOverwriteAsync
Parameters:
PatchOperation<'T>
-
Patch operation
success : 'T -> 'Result
-
Result transform if success
failure : CosmosException -> 'Result
-
Error transform if failure
cancellationToken : CancellationToken
-
Cancellation token
Returns: Task<CosmosResponse<'Result>>
|
Extended Type:
|
||
Full Usage:
this.ExecuteOverwriteAsync
Parameters:
PatchOperation<'T>
-
Patch operation.
cancellationToken : CancellationToken
-
Cancellation token.
Returns: Task<CosmosResponse<PatchResult<'T>>>
|
Extended Type:
|
||
Full Usage:
this.PlainExecuteAsync
Parameters:
PatchOperation<'T>
-
Patch operation.
cancellationToken : CancellationToken
-
Cancellation token.
Returns: Task<ItemResponse<'T>>
|
Extended Type:
|