Class BulkDestinationCache<TContent>
BulkApiContentReferenceCache<TContent> implementation that falls back to bulk API listing when destination information is not found in the manifest.
Implements
Inherited Members
Namespace: Tableau.Migration.Engine.Endpoints.Search
Assembly: Tableau.Migration.dll
Syntax
public class BulkDestinationCache<TContent> : BulkApiContentReferenceCache<TContent>, IContentReferenceCache where TContent : class, IContentReference
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
Constructors
BulkDestinationCache(IDestinationEndpoint, IConfigReader, IMigrationManifestEditor)
Creates a new BulkDestinationCache<TContent>
Declaration
public BulkDestinationCache(IDestinationEndpoint endpoint, IConfigReader configReader, IMigrationManifestEditor manifest)
Parameters
Type | Name | Description |
---|---|---|
IDestinationEndpoint | endpoint | The destination endpoint. |
IConfigReader | configReader | A config reader. |
IMigrationManifestEditor | manifest | A migration manifest. |
Methods
ItemLoaded(TContent)
Called after an item is loaded into the cache from the store.
Declaration
protected override void ItemLoaded(TContent item)
Parameters
Type | Name | Description |
---|---|---|
TContent | item | The item that was loaded. |
Overrides
SearchAsync(Guid, CancellationToken)
Searches for content at the given ID, possibly returning more references to opportunistically cache.
Declaration
protected override ValueTask<IEnumerable<ContentReferenceStub>> SearchAsync(Guid searchId, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
Guid | searchId | The primary ID to search for. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
ValueTask<IEnumerable<ContentReferenceStub>> | The content references to cache. |
Overrides
SearchAsync(ContentLocation, CancellationToken)
Searches for content at the given location, possibly returning more locations to opportunistically cache.
Declaration
protected override ValueTask<IEnumerable<ContentReferenceStub>> SearchAsync(ContentLocation searchLocation, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
ContentLocation | searchLocation | The primary location to search for. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
ValueTask<IEnumerable<ContentReferenceStub>> | The content references to cache. |