Class ManifestSourceContentReferenceFinder<TContent>
IContentReferenceFinder<TContent> implementation that finds source references from the migration manifest.
Namespace: Tableau.Migration.Engine.Endpoints.Search
Assembly: Tableau.Migration.dll
Syntax
public class ManifestSourceContentReferenceFinder<TContent> : ISourceContentReferenceFinder<TContent>, IContentReferenceFinder<TContent>, IContentReferenceFinder where TContent : class, IContentReference
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
Constructors
ManifestSourceContentReferenceFinder(IMigrationManifestEditor, IMigrationPipeline)
Creates a new ManifestSourceContentReferenceFinder<TContent> object.
Declaration
public ManifestSourceContentReferenceFinder(IMigrationManifestEditor manifest, IMigrationPipeline pipeline)
Parameters
Type | Name | Description |
---|---|---|
IMigrationManifestEditor | manifest | The manifest. |
IMigrationPipeline | pipeline | The pipeline to get a source cache from. |
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. |
FindBySourceLocationAsync(ContentLocation, CancellationToken)
Finds the source content reference for the source content reference location.
Declaration
public Task<IContentReference?> FindBySourceLocationAsync(ContentLocation sourceLocation, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
ContentLocation | sourceLocation | The source content reference location. |
CancellationToken | cancel | A cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IContentReference> | The found source content reference, or null if no content reference was found. |