Interface IPullApiClient<TContent, TPrepare>
Interface for an API client that can pull information to publish with.
Namespace: Tableau.Migration.Api
Assembly: Tableau.Migration.dll
Syntax
public interface IPullApiClient<TContent, TPrepare> where TPrepare : class
Type Parameters
| Name | Description |
|---|---|
| TContent | The content type. |
| TPrepare | The pulled type. |
Methods
PullAsync(TContent, CancellationToken)
Pulls enough information to publish the content item.
Declaration
Task<IResult<TPrepare>> PullAsync(TContent contentItem, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| TContent | contentItem | The content item to pull. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<IResult<TPrepare>> | The result of the pull operation with the item to publish. |