Interface IContentReferenceFinder
Interface for an object that can find IContentReferences for given search criteria.
Namespace: Tableau.Migration.Content.Search
Assembly: Tableau.Migration.dll
Syntax
public interface IContentReferenceFinder
Methods
FindAllAsync(CancellationToken)
Finds all available content references.
Declaration
Task<IImmutableList<IContentReference>> FindAllAsync(CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IImmutableList<IContentReference>> | The found content references. |
FindByIdAsync(Guid, CancellationToken)
Finds the content reference by its unique identifier.
Declaration
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. |