Interface IReadApiClient<TContent>
Interface for an API client that can get a content item.
Namespace: Tableau.Migration.Api
Assembly: Tableau.Migration.dll
Syntax
public interface IReadApiClient<TContent> where TContent : class
Type Parameters
| Name | Description |
|---|---|
| TContent | The content type. |
Methods
GetByIdAsync(Guid, CancellationToken)
Gets the content item by Id.
Declaration
Task<IResult<TContent>> GetByIdAsync(Guid contentId, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | contentId | The content item Id to get. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<IResult<TContent>> | The result of the get operation with the content item. |