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: 10.8.0
Syntax
public class ThumbnailUrlResolver

Constructors

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

Initializes a new instance of ThumbnailUrlResolver.

Declaration
public ThumbnailUrlResolver(IContentRepository contentRepository, IBlobResolver blobResolver, AssetUrlResolver assetUrlResolver, UrlResolver urlResolver, IModuleResourceResolver moduleResourceResolver)
Parameters
Type Name Description
EPiServer.IContentRepository contentRepository

The content repository

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.

ThumbnailUrlResolver(IContentRepository, BlobResolver, AssetUrlResolver, UrlResolver)

Declaration
[Obsolete("Use overload with IModuleResourceResolver parameter. Will remain at least until September 2017.")]
public ThumbnailUrlResolver(IContentRepository contentRepository, BlobResolver blobResolver, AssetUrlResolver assetUrlResolver, UrlResolver urlResolver)
Parameters
Type Name Description
EPiServer.IContentRepository contentRepository
EPiServer.Web.Internal.BlobResolver blobResolver
AssetUrlResolver assetUrlResolver
EPiServer.Web.Routing.UrlResolver urlResolver

Methods

GetThumbnailUrl(IAssetContainer, String)

Get a url to 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 url for the content's thumbnail.