Class StoredUpload
Represents an upload in an IUploadStore with its current state: its record, when its last chunk was written, the state of its handler's run and its outcome.
Namespace: Singulink.Net.Http.Api.Service.Uploads
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public sealed class StoredUpload
Constructors
| Name | Description |
|---|---|
| StoredUpload(UploadRecord, DateTime, UploadRunState, DateTime?, string?, DateTime?) | Initializes a new instance of the StoredUpload class. |
Properties
| Name | Description |
|---|---|
| LastWriteUtc | Gets the time a write of the upload's chunks last started or ended, which is later than its creation, or the time it was created (CreatedUtc) if no chunk was written, in UTC. The service keeps an upload that has received no chunk for UnstartedExpiry, and moves an upload's expiry with this time, so a chunk whose write takes long keeps its upload while it arrives. |
| Outcome | Gets the upload's outcome, as TrySetOutcomeAsync(UploadRecord, string, CancellationToken) stored it, or null if it has none. |
| OutcomeUtc | Gets the time the upload's outcome was stored, in UTC, or null if it has none. |
| Record | Gets the upload's record. |
| RunStartedUtc | Gets the time the upload's handler run was claimed, in UTC, or null if it is not claimed. |
| RunState | Gets the state of the claim of the upload's handler run. |