November Happy Hour will be moved to Thursday December 5th.

Class BlobRouter

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
Assembly: EPiServer.dll
Version: 9.12.2
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(BlobResolver, ThumbnailManager, IContentRepository, IContentProviderManager)

Initializes a new instance of the BlobRouter class.

Declaration
[Obsolete("use BlobRouter(BlobResolver, ThumbnailManager, IContentRepository, IContentProviderManager, IDatabaseMode)")]
public BlobRouter(BlobResolver blobResolver, ThumbnailManager thumbnailManager, IContentRepository contentRepository, IContentProviderManager providerManager)
Parameters
Type Name Description
BlobResolver blobResolver
ThumbnailManager thumbnailManager
IContentRepository contentRepository
IContentProviderManager providerManager

BlobRouter(BlobResolver, ThumbnailManager, IContentRepository, IContentProviderManager, IDatabaseMode)

Initializes a new instance of the BlobRouter class.

Declaration
[Obsolete("Use alternative constructor")]
public BlobRouter(BlobResolver blobResolver, ThumbnailManager thumbnailManager, IContentRepository contentRepository, IContentProviderManager providerManager, IDatabaseMode databaseMode)
Parameters
Type Name Description
BlobResolver blobResolver
ThumbnailManager thumbnailManager
IContentRepository contentRepository
IContentProviderManager providerManager
IDatabaseMode databaseMode

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)

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)

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