Class ViewsContentClient
Content client to interact with views.
Implements
Namespace: Tableau.Migration.Engine.Endpoints.ContentClients
Assembly: Tableau.Migration.dll
Syntax
public class ViewsContentClient : ContentClientBase<IView>, IViewsContentClient, IContentClient<IView>, IContentReferenceFinder<IView>, IContentReferenceFinder
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
FindAllAsync(CancellationToken)
Finds all available content references.
Declaration
public Task<IImmutableList<IContentReference>> FindAllAsync(CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<IImmutableList<IContentReference>> | The found content references. |
FindByIdAsync(Guid, CancellationToken)
Finds the content reference by its unique identifier.
Declaration
public Task<IContentReference?> FindByIdAsync(Guid id, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | The unique identifier. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<IContentReference> | The found content reference, or null if no content reference was found. |
GetByIdAsync(Guid, CancellationToken)
Get the view by ID.
Declaration
public Task<IResult<IView>> GetByIdAsync(Guid id, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | The ID of the view to get. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<IResult<IView>> | The result with the view. |