Class ViewsContentClient
Content client to interact with workbooks.
Namespace: Tableau.Migration.Engine.Endpoints.ContentClients
Assembly: Tableau.Migration.dll
Syntax
public class ViewsContentClient : ContentClientBase<IView>, IViewsContentClient, IContentClient<IView>
Constructors
ViewsContentClient(IViewsApiClient, ILogger<IViewsContentClient>, ISharedResourcesLocalizer)
Declaration
public ViewsContentClient(IViewsApiClient viewsApiClient, ILogger<IViewsContentClient> logger, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IViewsApiClient | viewsApiClient | |
ILogger<IViewsContentClient> | logger | |
ISharedResourcesLocalizer | localizer |
Methods
GetByIdAsync(Guid, CancellationToken)
Get the View by Id.
Declaration
public Task<IResult<IView>> GetByIdAsync(Guid id, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | Id of the view to get |
CancellationToken | cancel | Cancellation token to obey |
Returns
Type | Description |
---|---|
Task<IResult<IView>> |