Click or drag to resize

IUploadProgressGetUploadProgressAsync Method

IT Hit WebDAV Classes Reference
Gets IEnumerable with items that are being uploaded to this item subtree.

Namespace:  ITHit.WebDAV.Server.ResumableUpload
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 13.3.13068
Syntax
Task<IEnumerable<IResumableUpload>> GetUploadProgressAsync()

Return Value

Type: TaskIEnumerableIResumableUpload
Information about upload progress.
Exceptions
ExceptionCondition
DavExceptionIn other cases.
Remarks

Returns IEnumerableT with a single item if implemented on file items. Return all items that are being uploaded to this subtree if implemented on folder items.

Engine calls Path, LastChunkSaved, BytesUploaded, TotalContentLength and returns this information to client.

Examples

The code below is part of 'WebDAVServer.FileSystemStorage.AspNet' C# & VB samples provided with the SDK.

public async Task<IEnumerable<IResumableUpload>> GetUploadProgressAsync()
{
    return new[] { this };
}
See Also