Class DownloadMediaRouter
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Download media router that routes to IContentMedia on IContentMedia instances
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Web.Routing.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
[ServiceConfiguration]
public class DownloadMediaRouter : IPartialRouter<IContentMedia, IContentMedia>
Constructors
DownloadMediaRouter()
Declaration
public DownloadMediaRouter()
Fields
DownloadSegment
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The default download segment
Declaration
public static readonly string DownloadSegment
Field Value
Type | Description |
---|---|
System.String |
Methods
GetPartialVirtualPath(IContentMedia, String, RouteValueDictionary, RequestContext)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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 |