Class ManifestDestinationContentReferenceFinder<TContent>
IDestinationContentReferenceFinder<TContent> implementation that uses the mapped manifest information to find destination content, falling back to API loading.
Namespace: Tableau.Migration.Engine.Endpoints.Search
Assembly: Tableau.Migration.dll
Syntax
public class ManifestDestinationContentReferenceFinder<TContent> : IDestinationContentReferenceFinder<TContent>, IContentReferenceFinder<TContent>, IContentReferenceFinder where TContent : class, IContentReference
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
Constructors
ManifestDestinationContentReferenceFinder(IMigrationManifestEditor, IMigrationPipeline)
Creates a new ManifestDestinationContentReferenceFinder<TContent> object.
Declaration
public ManifestDestinationContentReferenceFinder(IMigrationManifestEditor manifest, IMigrationPipeline pipeline)
Parameters
Type | Name | Description |
---|---|---|
IMigrationManifestEditor | manifest | The migration manifest. |
IMigrationPipeline | pipeline | The pipeline to get a destination 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. |
FindByMappedLocationAsync(ContentLocation, CancellationToken)
Finds the destination content reference for the mapped destination content reference location.
Declaration
public Task<IContentReference?> FindByMappedLocationAsync(ContentLocation mappedLocation, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
ContentLocation | mappedLocation | The destination mapped content reference location. |
CancellationToken | cancel | A cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IContentReference> | The found destination content reference, or null if no content reference was found. |
FindBySourceContentUrlAsync(string, CancellationToken)
Finds the destination content reference for the source content reference URL.
Declaration
public Task<IContentReference?> FindBySourceContentUrlAsync(string contentUrl, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
string | contentUrl | |
CancellationToken | cancel | A cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IContentReference> | The found destination content reference, or null if no content reference was found. |
FindBySourceIdAsync(Guid, CancellationToken)
Finds the destination content reference for the source content reference unique identifier.
Declaration
public Task<IContentReference?> FindBySourceIdAsync(Guid sourceId, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
Guid | sourceId | The source content reference unique identifier. |
CancellationToken | cancel | A cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IContentReference> | The found destination content reference, or null if no content reference was found. |
FindBySourceLocationAsync(ContentLocation, CancellationToken)
Finds the destination 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 destination content reference, or null if no content reference was found. |