Class UploadProgressService
In-memory implementation of IUploadProgressService backed by a concurrent dictionary.
Implements
Inherited Members
Namespace: CoreUpload.Services
Assembly: CoreUpload.dll
Syntax
public class UploadProgressService : IUploadProgressService
Methods
Get(string)
Gets the latest progress snapshot for an upload session. Returns null when no entry exists.
Declaration
public UploadProgressInfo? Get(string uploadId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | uploadId |
Returns
| Type | Description |
|---|---|
| UploadProgressInfo |
Remove(string)
Removes the progress entry for an upload session.
Declaration
public void Remove(string uploadId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | uploadId |
Update(string, Action<UploadProgressInfo>)
Gets or creates the progress entry for an upload session and lets the caller update it.
Declaration
public void Update(string uploadId, Action<UploadProgressInfo> updater)
Parameters
| Type | Name | Description |
|---|---|---|
| string | uploadId | |
| Action<UploadProgressInfo> | updater |