Method TrySetOutcomeAsync
TrySetOutcomeAsync(UploadRecord, string, CancellationToken)
Stores the outcome of an upload, unless it already has one or no longer exists, and removes its content, its chunks and its run claim.
Declaration
ValueTask<bool> TrySetOutcomeAsync(UploadRecord upload, string outcome, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UploadRecord | upload | The record of the upload. |
| string | outcome | The outcome, which Outcome returns from then on. |
| CancellationToken | cancellationToken | A token that cancels the operation. |
Returns
| Type | Description |
|---|---|
| ValueTask<bool> | true if the outcome was stored, or false if the upload already has an outcome or no longer exists. |