Krystalware
SlickUpload logo

IStatusManager Interface

Represents a contract for a status manager class that stores and retrieves UploadStatus objects for uploads in progress.

Members

GetUploadStatus(String)

Called when user code calls the HttpUploadModule.GetUploadStatus method.

Parameters

Return Value

UploadStatus – The latest UploadStatus for the given uploadId, or null if none could be found.

RemoveStaleStatus(Int32)

Called periodically to remove any stale status from the store. Implementers should remove all statuses that haven't been updated in the specified time whatever store they are using. This is necessary because if a user closes the browser during an upload, the status will never get removed.

Parameters

  • staleMinutes (Int32) – The number of minutes not being updated after which the upload should be considered stale.

RemoveStatus(String)

Called when user code calls the HttpUploadModule.String) method. Implementers should remove the upload status from the store they are using.

Parameters

StatusChanged(UploadStatus)

Called when a property on the UploadStatus is changed. Implementers should update the UploadStatus created in IStatusManager.UploadStatus).

Parameters

UploadStarted(UploadStatus)

Called when an upload is started. Implementers should save an initial copy of the UploadStatus passed in.

Parameters