Class TableauApiEndpointViewCache
IEndpointViewCache implementation that retrieves views through the Tableau API as a fallback.
Inherited Members
Namespace: Tableau.Migration.Engine.Endpoints.Caching
Assembly: Tableau.Migration.dll
Syntax
public class TableauApiEndpointViewCache : ConfigurableMigrationCacheBase<Guid, IView>, IEndpointViewCache, IMigrationCache<Guid, IView>, IDisposable
Constructors
TableauApiEndpointViewCache(IConfigReader, IViewsApiClient)
Creates a new TableauApiEndpointViewCache object.
Declaration
public TableauApiEndpointViewCache(IConfigReader config, IViewsApiClient viewsApiClient)
Parameters
Type | Name | Description |
---|---|---|
IConfigReader | config | The configuration reader. |
IViewsApiClient | viewsApiClient | The views API client. |
Methods
FindCacheMissAsync(Guid, CancellationToken)
Finds the value to cache for a given cache key.
Declaration
protected override Task<IResult<IView>> FindCacheMissAsync(Guid key, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
Guid | key | The key to find the value for. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<IView>> | The result of the find operation with the value to cache. |