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

Class ThumbnailUrlResolver

Service to get thumbnail urls for content.

Inheritance
System.Object
ThumbnailUrlResolver
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.Commerce.Catalog
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public class ThumbnailUrlResolver

Constructors

ThumbnailUrlResolver(IContentLoader, IBlobResolver, AssetUrlResolver, UrlResolver, IModuleResourceResolver, IVirtualPathResolver)

Initializes a new instance of ThumbnailUrlResolver.

Declaration
public ThumbnailUrlResolver(IContentLoader contentLoader, IBlobResolver blobResolver, AssetUrlResolver assetUrlResolver, UrlResolver urlResolver, IModuleResourceResolver moduleResourceResolver, IVirtualPathResolver virtualPathResolver)
Parameters
Type Name Description
EPiServer.IContentLoader contentLoader

The content loader.

EPiServer.Web.IBlobResolver blobResolver

The blob resolver.

AssetUrlResolver assetUrlResolver

The asset url resolver.

EPiServer.Web.Routing.UrlResolver urlResolver

The url resolver.

EPiServer.Framework.Modules.IModuleResourceResolver moduleResourceResolver

The module resource resolver.

EPiServer.Web.IVirtualPathResolver virtualPathResolver

The virtual path resolver.

ThumbnailUrlResolver(IContentRepository, IBlobResolver, AssetUrlResolver, UrlResolver, IModuleResourceResolver)

Declaration
[Obsolete("This constructor is no longer used. Using the one with IContentLoader and IVirtualPathResolver instead. Will remain at least November 2019")]
public ThumbnailUrlResolver(IContentRepository contentRepository, IBlobResolver blobResolver, AssetUrlResolver assetUrlResolver, UrlResolver urlResolver, IModuleResourceResolver moduleResourceResolver)
Parameters
Type Name Description
EPiServer.IContentRepository contentRepository
EPiServer.Web.IBlobResolver blobResolver
AssetUrlResolver assetUrlResolver
EPiServer.Web.Routing.UrlResolver urlResolver
EPiServer.Framework.Modules.IModuleResourceResolver moduleResourceResolver

Methods

GetAbsoluteThumbnailUrl(ContentReference, String)

Get absolute url of the thumbnail from the asset of a content.

Declaration
public virtual string GetAbsoluteThumbnailUrl(ContentReference contentLink, string propertyName)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink

The content link.

System.String propertyName

The name of the property to get the asset from.

Returns
Type Description
System.String

The absolute url for the content's thumbnail.

GetThumbnailUrl(IAssetContainer, String)

Get relative url of the thumbnail from the asset of the IAssetContainer.

Declaration
public virtual string GetThumbnailUrl(IAssetContainer content, string propertyName)
Parameters
Type Name Description
IAssetContainer content

The asset container.

System.String propertyName

The name of the property to get the asset from.

Returns
Type Description
System.String

The relative url for the content's thumbnail.

GetThumbnailUrl(ContentReference, String)

Get relative url of the thumbnail from the asset of a content.

Declaration
public virtual string GetThumbnailUrl(ContentReference contentLink, string propertyName)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink

The content link.

System.String propertyName

The name of the property to get the asset from.

Returns
Type Description
System.String

The relative url for the content's thumbnail.