Class TableauApiEndpointWorkbookViewsCache
IEndpointWorkbookViewsCache implementation that retrieves workbook views through the Tableau API as a fallback.
Inheritance
object
TableauApiEndpointWorkbookViewsCache
Inherited Members
Namespace: Tableau.Migration.Engine.Endpoints.Caching
Assembly: Tableau.Migration.dll
Syntax
public class TableauApiEndpointWorkbookViewsCache : ConfigurableMigrationCacheBase<Guid, IImmutableList<IView>>, IEndpointWorkbookViewsCache, IMigrationCache<Guid, IImmutableList<IView>>, IDisposable
Constructors
TableauApiEndpointWorkbookViewsCache(IWorkbooksApiClient, IConfigReader)
Creates a new TableauApiEndpointWorkbookViewsCache object.
Declaration
public TableauApiEndpointWorkbookViewsCache(IWorkbooksApiClient workbooksApiClient, IConfigReader config)
Parameters
Type | Name | Description |
---|---|---|
IWorkbooksApiClient | workbooksApiClient | The workbook API client. |
IConfigReader | config | The config reader. |
Methods
FindCacheMissAsync(Guid, CancellationToken)
Finds the value to cache for a given cache key.
Declaration
protected override Task<IResult<IImmutableList<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<IImmutableList<IView>>> | The result of the find operation with the value to cache. |