Gets or sets the value that specifies time to life, in minutes, for Upload class instance.

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

Syntax

C#
public int UploadTTL { get; set; }
Visual Basic (Declaration)
Public Property UploadTTL As Integer

Field Value

Type: System..::.Int32
The Int32 value that specifies the number of minutes to wait until the Upload class instance dispose. Default is 60 minutes.

Remarks

This property is a reflection of EAUpload configuration parameter (<EasyAlgo.EAUpload>/<Environment ... UploadTTL="" ... >).
The logic of EAUpload component defines that, if instance of Upload class is not disposed by the developer then it is storred in memory and will be disposed after time to life period is expired. You can get an access to all stored Upload class instanses by UploadsManager class. This functionality provides a possibility to manage all uploads, to watch over server load, to gather a statistical information etc.

Note:If you want to change this property at the runtime, you should define it at the Initializing stage of an upload (see EasyAlgo.EAUpload..::.UploadState for more information). All changes for processing uploads will be ignored. Also if you have changed this property for the whole of EAUpload component (EAUploadModule..::.CommonEnvironment property) then new value will be used for the new uploads only.

Examples

You can find an example in the description of UploadEnvironment class.

See Also