Class BlobRouter
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Routes to Blobs on IContent instances.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Web.Routing.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[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 |