Method ListAsync
ListAsync(string?, bool, CancellationToken)
Lists uploads with their current state: the uploads of a user, or all of them. The service lists them to count a user's open uploads, and to find the uploads to remove and their total size.
Declaration
IAsyncEnumerable<StoredUpload> ListAsync(string? userId = null, bool withoutOutcomes = false, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userId | The ID of the user whose uploads are listed, or null to list all uploads. |
| bool | withoutOutcomes | Whether uploads that have an outcome are left out, which the store can do without reading them. The service leaves them out when it counts a user's open uploads. |
| CancellationToken | cancellationToken | A token that cancels the operation. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<StoredUpload> |