Class DownloadMediaRouter
Download media router that routes to IContentMedia on IContentMedia instances
Inheritance
System.Object
DownloadMediaRouter
Implements
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.Routing
Assembly: EPiServer.dll
Version: 9.12.2Syntax
[ServiceConfiguration]
public class DownloadMediaRouter : IPartialRouter<IContentMedia, IContentMedia>
Constructors
DownloadMediaRouter()
Declaration
public DownloadMediaRouter()
Fields
DownloadSegment
The default download segment
Declaration
public static readonly string DownloadSegment
Field Value
Type | Description |
---|---|
System.String |
Methods
GetPartialVirtualPath(IContentMedia, String, RouteValueDictionary, RequestContext)
Gets the partial virtual path.
Declaration
public PartialRouteData GetPartialVirtualPath(IContentMedia content, string language, RouteValueDictionary routeValues, RequestContext requestContext)
Parameters
Type | Name | Description |
---|---|---|
IContentMedia | content | The content. |
System.String | language | The language. |
System.Web.Routing.RouteValueDictionary | routeValues | The route values. |
System.Web.Routing.RequestContext | requestContext | The request context. |
Returns
Type | Description |
---|---|
PartialRouteData |
RoutePartial(IContentMedia, SegmentContext)
The partial router for download IContentMedia the format should be [content public URL]/[DownloadSegment].
Declaration
public object RoutePartial(IContentMedia content, SegmentContext segmentContext)
Parameters
Type | Name | Description |
---|---|---|
IContentMedia | content | The source content that holds the Blob property. |
SegmentContext | segmentContext | The context for routing. |
Returns
Type | Description |
---|---|
System.Object | A IContentMedia object |