Class DestinationCache<TContent>
ApiContentReferenceCacheBase<TContent> implementation that falls back to bulk API listing when destination information is not found in the manifest.
Inheritance
object
ContentReferenceCacheBase<TContent>
ApiContentReferenceCacheBase<TContent>
DestinationCache<TContent>
Implements
Inherited Members
Namespace: Tableau.Migration.Engine.Endpoints.Caching
Assembly: Tableau.Migration.dll
Syntax
public class DestinationCache<TContent> : ApiContentReferenceCacheBase<TContent>, IContentReferenceCache where TContent : class, IContentReference
Type Parameters
| Name | Description |
|---|---|
| TContent | The content type. |
Constructors
DestinationCache(IMigrationPipeline, IDestinationEndpoint, IConfigReader, IMigrationManifestEditor, ILogger<DestinationCache<TContent>>)
Creates a new DestinationCache<TContent>
Declaration
public DestinationCache(IMigrationPipeline pipeline, IDestinationEndpoint endpoint, IConfigReader configReader, IMigrationManifestEditor manifest, ILogger<DestinationCache<TContent>> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationPipeline | pipeline | The migration pipeline. |
| IDestinationEndpoint | endpoint | The destination endpoint. |
| IConfigReader | configReader | A config reader. |
| IMigrationManifestEditor | manifest | A migration manifest. |
| ILogger<DestinationCache<TContent>> | logger |
Properties
Name
Declaration
protected override string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
ForIdAsync(Guid, CancellationToken)
Finds the content reference item for a given endpoint ID.
Declaration
public override Task<IContentReference?> ForIdAsync(Guid id, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | The ID. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<IContentReference> | The content reference, or null if no item was found. |
Overrides
ForLocationAsync(ContentLocation, CancellationToken)
Finds the content reference item for a given endpoint location.
Declaration
public override Task<IContentReference?> ForLocationAsync(ContentLocation location, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentLocation | location | The location. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<IContentReference> | The content reference, or null if no item was found. |
Overrides
ItemsLoadedAsync(IImmutableList<TContent>, CancellationToken)
Called after one or more items have been loaded into the cache from the store.
Declaration
protected override Task ItemsLoadedAsync(IImmutableList<TContent> items, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| IImmutableList<TContent> | items | The items that were loaded. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task | A task to await. |