Class WorkbooksContentClient
Content client to interact with workbooks.
Namespace: Tableau.Migration.Engine.Endpoints.ContentClients
Assembly: Tableau.Migration.dll
Syntax
public class WorkbooksContentClient : ContentClientBase<IWorkbook>, IWorkbooksContentClient, IContentClient<IWorkbook>
Constructors
WorkbooksContentClient(IEndpointWorkbookViewsCache, ILogger<WorkbooksContentClient>, ISharedResourcesLocalizer)
Declaration
public WorkbooksContentClient(IEndpointWorkbookViewsCache workbookViewsCache, ILogger<WorkbooksContentClient> logger, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IEndpointWorkbookViewsCache | workbookViewsCache | |
ILogger<WorkbooksContentClient> | logger | |
ISharedResourcesLocalizer | localizer |
Methods
GetViewsForWorkbookIdAsync(Guid, CancellationToken)
Gets the views for a workbook.
Declaration
public Task<IResult<IImmutableList<IView>>> GetViewsForWorkbookIdAsync(Guid workbookId, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
Guid | workbookId | The Workbook Id to get views for. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<IImmutableList<IView>>> | Collection of views for the workbook. |