IRemoteCatalogPreviewResolver
public interface IRemoteCatalogPreviewResolverDefines 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.
Methods
Section titled “Methods”
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
| Name | Type |
|---|---|
itemId | System.String |
previewUrl | System.String |
cancellationToken | System.Threading.CancellationToken |
Returns
System.Threading.Tasks.Task{System.String}