Method ReleaseKeyAsync
ReleaseKeyAsync(string, string, string, CancellationToken)
Releases the reservation of an idempotency key of a user if it is reserved for the specified upload, such as when the upload's creation failed.
Declaration
ValueTask ReleaseKeyAsync(string userId, string key, string uploadId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userId | The ID of the user. |
| string | key | The idempotency key. |
| string | uploadId | The ID of the upload that the key is reserved for. |
| CancellationToken | cancellationToken | A token that cancels the operation. |
Returns
| Type | Description |
|---|---|
| ValueTask |