Interface ISourceEndpoint
IMigrationEndpoint interface for locations that serve as a source to load Tableau data from. This interface can be obtained through scoped dependency injection for the current in-progress migration.
Inherited Members
Namespace: Tableau.Migration.Engine.Endpoints
Assembly: Tableau.Migration.dll
Syntax
public interface ISourceEndpoint : IMigrationEndpoint, IAsyncDisposable
Methods
GetPermissionsAsync(Type, IContentReference, CancellationToken)
Gets permissions for the content item.
Declaration
Task<IResult<IPermissions>> GetPermissionsAsync(Type type, IContentReference contentItem, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The content type. |
IContentReference | contentItem | The content item to get permissions for. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<IPermissions>> | The result of the permissions operation. |
GetPermissionsAsync<TContent>(IContentReference, CancellationToken)
Gets permissions for the content item.
Declaration
Task<IResult<IPermissions>> GetPermissionsAsync<TContent>(IContentReference contentItem, CancellationToken cancel) where TContent : IPermissionsContent
Parameters
Type | Name | Description |
---|---|---|
IContentReference | contentItem | The content item to get permissions for. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<IPermissions>> | The result of the permissions operation. |
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
ListConnectionsAsync<TContent>(Guid, CancellationToken)
List the content item's connections.
Declaration
Task<IResult<ImmutableList<IConnection>>> ListConnectionsAsync<TContent>(Guid contentItemId, CancellationToken cancel) where TContent : IWithConnections
Parameters
Type | Name | Description |
---|---|---|
Guid | contentItemId | The ID of the content item. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<ImmutableList<IConnection>>> | An immutable list of connections. |
Type Parameters
Name | Description |
---|---|
TContent |
PullAsync<TContent, TPublish>(TContent, CancellationToken)
Pulls enough information to publish the content item.
Declaration
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. |