Constructor UploadRecord
UploadRecord(string, string, long, int, DateTime, string, string?)
Initializes a new instance of the UploadRecord class.
Declaration
public UploadRecord(string id, string userId, long length, int chunkSize, DateTime createdUtc, string metadata, string? idempotencyKey = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The upload ID. |
| string | userId | The ID of the user the upload belongs to. |
| long | length | The length of the file in bytes. |
| int | chunkSize | The chunk size in bytes. |
| DateTime | createdUtc | The time the upload was created, in UTC. |
| string | metadata | The service's metadata of the upload. |
| string | idempotencyKey | The idempotency key that is reserved for the upload, if its creation has one. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |
|