Class ViewsContentClient
Content client to interact with views.
Namespace: Tableau.Migration.Engine.Endpoints.ContentClients
Assembly: Tableau.Migration.dll
Syntax
public class ViewsContentClient : ContentClientBase<IView>, IViewsContentClient, IContentClient<IView>
Constructors
ViewsContentClient(IEndpointViewCache, ILogger<ViewsContentClient>, ISharedResourcesLocalizer)
Declaration
public ViewsContentClient(IEndpointViewCache viewCache, ILogger<ViewsContentClient> logger, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IEndpointViewCache | viewCache | |
ILogger<ViewsContentClient> | 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>> |