Method CheckOutcomeRemovalAsync
CheckOutcomeRemovalAsync(IUploadStore, CancellationToken)
Checks the removal of outcomes (see RemoveOutcomesAsync(DateTime, CancellationToken)) with uploads of its own user: outcomes stored before the time are removed, after which an upload with the ID can be created again, and later ones are kept.
Declaration
public static Task CheckOutcomeRemovalAsync(IUploadStore store, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IUploadStore | store | The store to check. |
| CancellationToken | cancellationToken | A token to cancel the check. |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
Run it only against a store that holds test data: it removes the outcomes of all users that were stored before one of its own. It stores outcomes a moment apart, so a store whose time provider stands still doesn't pass it.
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The store does not keep a guarantee, which the message describes. |