Skip to content

IRemoteCatalogPreviewResolver

InterfaceAssetInventoryAssetInventory.Editor
public interface IRemoteCatalogPreviewResolver

Defines an optional thumbnail lookup for sources whose items list their thumbnail only in their own metadata. It runs when a preview is first needed, so searches make no request per result.

ResolvePreviewUrlAsync(string, string, CancellationToken)

Section titled “ResolvePreviewUrlAsync(string, string, CancellationToken)”
Task<string> ResolvePreviewUrlAsync(string itemId, string previewUrl, CancellationToken cancellationToken)

Returns the thumbnail address of an item, starting from the address its catalog entry names, or null when the source publishes none.

Parameters

NameType
itemIdSystem.String
previewUrlSystem.String
cancellationTokenSystem.Threading.CancellationToken

Returns

System.Threading.Tasks.Task{System.String}