Method CheckAsync
CheckAsync(IUploadStore, CancellationToken)
Checks the store with uploads of a user of its own, which it deletes once their checks pass: creations, reads and lists, chunk writes, claims of runs and their exclusion of chunk writes, outcomes, deletions, and reservations of idempotency keys, each also at the same time from several callers.
Declaration
public static Task CheckAsync(IUploadStore store, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IUploadStore | store | The store to check. |
| CancellationToken | cancellationToken | A token to cancel the checks. |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
A check waits a moment for the lease of a claim to lapse by the store's clock, so a store whose time provider stands still doesn't pass it. A check
that fails leaves its uploads in the store, under the user ID upload-store-contract, until they expire.
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The store does not keep a guarantee, which the message describes. |