Provides static methods for manipulation with processing and processed uploads which are existed on a server.

Namespace:  EasyAlgo.EAUpload
Assembly:  EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.1.0

Syntax

C#
public class UploadsManager
Visual Basic (Declaration)
Public Class UploadsManager

Remarks

The logic of EAUpload component defines that all Upload objects are stored in memory and kept alive while time to life period does not expired, or while Upload object will not be disposed by developer. The UploadsManager class provides access to collection of these Upload objects. This functionality provides a possibility to retrive the specific Upload object, to watch over server load, to gather a statistical information, to delete not actual uploads etc.

Note: EAUpload component can process massive amount of concurrent uploads. Upload objects collection can be used by multiple threads simultaneously, therefore be careful when you use UploadsManager class.

Examples

The following code example retrieves an existing Upload object from the uploads collection and gets an instance of UploadStatus class.
CopyC#
string UploadId = Request.QueryString["UploadId"];
Upload _upload = UploadsManager.GetUpload(UploadId);

UploadStatus _Status = _upload.Status;

// do something useful
CopyVB.NET
Dim UploadId As String = Request.QueryString("UploadId")    
Dim _upload As Upload = UploadsManager.GetUpload(UploadId)

Dim _Status As UploadStatus = _upload.Status

' do something useful

Inheritance Hierarchy

System..::.Object
  EasyAlgo.EAUpload..::.UploadsManager

See Also