Class TableauApiSourceEndpoint
ISourceEndpoint implementation that uses Tableau Server/Cloud APIs.
Implements
Inherited Members
Namespace: Tableau.Migration.Engine.Endpoints
Assembly: Tableau.Migration.dll
Syntax
public class TableauApiSourceEndpoint : TableauApiEndpointBase, ISourceApiEndpoint, ISourceEndpoint, IMigrationApiEndpoint, IMigrationEndpoint, IAsyncDisposable
Constructors
TableauApiSourceEndpoint(IServiceScopeFactory, ITableauApiEndpointConfiguration, ISourceContentReferenceFinderFactory, IContentFileStore, ISharedResourcesLocalizer)
Creates a new TableauApiSourceEndpoint object.
Declaration
public TableauApiSourceEndpoint(IServiceScopeFactory serviceScopeFactory, ITableauApiEndpointConfiguration config, ISourceContentReferenceFinderFactory finderFactory, IContentFileStore fileStore, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IServiceScopeFactory | serviceScopeFactory | A service scope factory to define an API client scope with. |
ITableauApiEndpointConfiguration | config | The configuration options for connecting to the source endpoint APIs. |
ISourceContentReferenceFinderFactory | finderFactory | A source manifest finder factory. |
IContentFileStore | fileStore | The file store to use. |
ISharedResourcesLocalizer | localizer | A string localizer. |
Methods
PullAsync<TContent, TPublish>(TContent, CancellationToken)
Pulls enough information to publish the content item.
Declaration
public Task<IResult<TPublish>> PullAsync<TContent, TPublish>(TContent contentItem, CancellationToken cancel) where TPublish : class
Parameters
Type | Name | Description |
---|---|---|
TContent | contentItem | The content item to pull. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<TPublish>> | The result of the pull operation with the item to publish. |
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
TPublish | The publish type. |