Interface IFilePublisher<TPublishOptions, TPublishResult>
Interface for file publisher classes.
Namespace: Tableau.Migration.Api.Publishing
Assembly: Tableau.Migration.dll
Syntax
public interface IFilePublisher<TPublishOptions, TPublishResult> where TPublishOptions : IPublishFileOptions where TPublishResult : class, IContentReference
Type Parameters
Name | Description |
---|---|
TPublishOptions | |
TPublishResult |
Methods
PublishAsync(TPublishOptions, CancellationToken)
Publishes the file with the specified options.
Declaration
Task<IResult<TPublishResult>> PublishAsync(TPublishOptions options, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
TPublishOptions | options | The publish options |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<TPublishResult>> |