Class MigrationEndpointFactory
Default IMigrationEndpointFactory implementation.
Inheritance
object
MigrationEndpointFactory
Implements
Namespace: Tableau.Migration.Engine.Endpoints
Assembly: Tableau.Migration.dll
Syntax
public class MigrationEndpointFactory : IMigrationEndpointFactory
Constructors
MigrationEndpointFactory(IServiceScopeFactory, ISourceContentReferenceFinderFactory, IDestinationContentReferenceFinderFactory, IContentFileStore, ISharedResourcesLocalizer)
Creates a new MigrationEndpointFactory object.
Declaration
public MigrationEndpointFactory(IServiceScopeFactory serviceScopeFactory, ISourceContentReferenceFinderFactory sourceFinderFactory, IDestinationContentReferenceFinderFactory destinationFinderFactory, IContentFileStore fileStore, ISharedResourcesLocalizer localizer)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceScopeFactory | serviceScopeFactory | A service scope factory to define an API client scope with. |
| ISourceContentReferenceFinderFactory | sourceFinderFactory | A source content reference finder factory. |
| IDestinationContentReferenceFinderFactory | destinationFinderFactory | A destination content reference finder factory. |
| IContentFileStore | fileStore | The file store to use. |
| ISharedResourcesLocalizer | localizer | A string localizer. |
Methods
CreateDestination(IMigrationPlan)
Creates the destination endpoint for the given migration plan.
Declaration
public IDestinationEndpoint CreateDestination(IMigrationPlan plan)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationPlan | plan | The migration plan to configure the endpoint for. |
Returns
| Type | Description |
|---|---|
| IDestinationEndpoint | The created destination endpoint. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If the source endpoint type is not supported by the factory. |
CreateSource(IMigrationPlan)
Creates the source endpoint for the given migration plan.
Declaration
public ISourceEndpoint CreateSource(IMigrationPlan plan)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationPlan | plan | The migration plan to configure the endpoint for. |
Returns
| Type | Description |
|---|---|
| ISourceEndpoint | The created source endpoint. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If the source endpoint type is not supported by the factory. |