SaaS CMS has officially launched! Learn more now.

Class WebDownloadManager

Supporting class for file downloads.

Inheritance
System.Object
WebDownloadManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Hosting
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public static class WebDownloadManager

Methods

HandleModifiedSince(DateTime)

Handles the "If-Modified-Since" request header.

Declaration
public static bool HandleModifiedSince(DateTime modifiedDate)
Parameters
Type Name Description
System.DateTime modifiedDate

The modified date of the requested resource.

Returns
Type Description
System.Boolean

True if the cached version of the resource is still valid; false otherwise.

TransmitFile(String)

Transmit a file to the output stream

Declaration
public static bool TransmitFile(string path)
Parameters
Type Name Description
System.String path

Path to the file to transmit

Returns
Type Description
System.Boolean

TransmitFile(String, String, DownloadManagerAction)

Transmit a file to the output stream

Declaration
public static bool TransmitFile(string path, string fileVersion, DownloadManagerAction action)
Parameters
Type Name Description
System.String path

Path to the file to transmit.

System.String fileVersion

A specific version of the file

DownloadManagerAction action

How file should be downloaded DownloadManagerAction

Returns
Type Description
System.Boolean
Remarks

Note that we assume that path and fileVersion has been properly decoded.

Events

TransmittingFile

Occurs before a unified file is transmitted

Declaration
public static event EventHandler<UnifiedVirtualPathEventArgs> TransmittingFile
Event Type
Type Description
System.EventHandler<UnifiedVirtualPathEventArgs>