Try our conversational search powered by Generative AI!

Class BlobRouter

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Routes to Blobs on IContent instances.

Inheritance
System.Object
BlobRouter
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 BlobRouter : IPartialRouter<IContent, Blob>
Remarks

For Blob properties with ImageDescriptorAttribute (as for example for Thumbnail autogeneration of scaled images is performed.

Constructors

BlobRouter(IBlobResolver, ThumbnailManager, IContentRepository, IContentProviderManager, IDatabaseMode, IBlobAssigner)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the BlobRouter class.

Declaration
public BlobRouter(IBlobResolver blobResolver, ThumbnailManager thumbnailManager, IContentRepository contentRepository, IContentProviderManager providerManager, IDatabaseMode databaseMode, IBlobAssigner blobAssigner)
Parameters
Type Name Description
IBlobResolver blobResolver
ThumbnailManager thumbnailManager
IContentRepository contentRepository
IContentProviderManager providerManager
IDatabaseMode databaseMode
IBlobAssigner blobAssigner

Methods

GetPartialVirtualPath(Blob, String, RouteValueDictionary, RequestContext)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Generate the correspond links to the thumbnails

Declaration
public PartialRouteData GetPartialVirtualPath(Blob content, string language, RouteValueDictionary routeValues, RequestContext requestContext)
Parameters
Type Name Description
Blob content

The Blob object represent the thumbnail image

System.String language

The language code expected

System.Web.Routing.RouteValueDictionary routeValues

A dictionary of route

System.Web.Routing.RequestContext requestContext

The context contains request's information

Returns
Type Description
PartialRouteData

RoutePartial(IContent, SegmentContext)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The partial router for Blobs on any IContent, the format should be [content URL]/BlobPropertyName.

Declaration
public object RoutePartial(IContent content, SegmentContext segmentContext)
Parameters
Type Name Description
IContent content

The source content that holds the Blob property.

SegmentContext segmentContext

The context for routing.

Returns
Type Description
System.Object

A Blob object, represents the content's thumbnail image.

Implements

Extension Methods