Class CachedContentReferenceFinder<TContent>
IContentReferenceFinder<TContent> implementation that uses a IContentReferenceCache to find content references.
Namespace: Tableau.Migration.Content.Search
Assembly: Tableau.Migration.dll
Syntax
public class CachedContentReferenceFinder<TContent> : IContentReferenceFinder<TContent>, IContentReferenceFinder where TContent : IContentReference
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
Remarks
Creates a new CachedContentReferenceFinder<TContent> object.
Constructors
CachedContentReferenceFinder(IContentReferenceCache)
IContentReferenceFinder<TContent> implementation that uses a IContentReferenceCache to find content references.
Declaration
public CachedContentReferenceFinder(IContentReferenceCache cache)
Parameters
Type | Name | Description |
---|---|---|
IContentReferenceCache | cache | The content reference cache. |
Remarks
Creates a new CachedContentReferenceFinder<TContent> object.
Methods
FindByIdAsync(Guid, CancellationToken)
Finds the content reference by its unique identifier.
Declaration
public Task<IContentReference?> FindByIdAsync(Guid id, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | The unique identifier. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IContentReference> | The found content reference, or null if no content reference was found. |