Interface IPublishApiClient<TPublish, TPublishResult>
Interface for a content typed API client that can publish items.
Namespace: Tableau.Migration.Api
Assembly: Tableau.Migration.dll
Syntax
public interface IPublishApiClient<TPublish, TPublishResult> where TPublishResult : class, IContentReference
Type Parameters
Name | Description |
---|---|
TPublish | The content publish type. |
TPublishResult | The publish result type. |
Methods
PublishAsync(TPublish, CancellationToken)
Publishes a content item.
Declaration
Task<IResult<TPublishResult>> PublishAsync(TPublish item, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
TPublish | item | The content item to publish. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<TPublishResult>> | The results of the publishing with a content reference of the newly published item. |