SaaS CMS has officially launched! Learn more now.

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
System.Object
DownloadMediaRouter
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.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[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

Implements

Extension Methods