Interface IMigrationServiceBuilder
Interface for an object that can register service factory overrides for supported service types.
Inherited Members
Namespace: Tableau.Migration.Engine.Services
Assembly: Tableau.Migration.dll
Syntax
public interface IMigrationServiceBuilder : IMigrationServiceFactoryCollection
Properties
SupportedServices
Gets the list of service types that can be overriden with this service builder.
Declaration
IImmutableList<Type> SupportedServices { get; }
Property Value
| Type | Description |
|---|---|
| IImmutableList<Type> |
Methods
Remove(Type)
Removes any previously registered service override for the given service type.
Declaration
IMigrationServiceBuilder Remove(Type service)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | service | The service type to remove any override for. |
Returns
| Type | Description |
|---|---|
| IMigrationServiceBuilder | This service builder, for fluent API usage. |
Remove<TService>()
Removes any previously registered service override for the given service type.
Declaration
IMigrationServiceBuilder Remove<TService>()
Returns
| Type | Description |
|---|---|
| IMigrationServiceBuilder | This service builder, for fluent API usage. |
Type Parameters
| Name | Description |
|---|---|
| TService | The service type to remove any override for. |
Set(Type, MigrationServiceFactory)
Overrides a service for the given service type.
Declaration
IMigrationServiceBuilder Set(Type service, MigrationServiceFactory factory)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | service | The service type to override. |
| MigrationServiceFactory | factory | The service factory to create the service with. |
Returns
| Type | Description |
|---|---|
| IMigrationServiceBuilder | This service builder, for fluent API usage. |
Set<TService>(MigrationServiceFactory)
Overrides a service for the given service type.
Declaration
IMigrationServiceBuilder Set<TService>(MigrationServiceFactory factory)
Parameters
| Type | Name | Description |
|---|---|---|
| MigrationServiceFactory | factory | The service factory to create the service with. |
Returns
| Type | Description |
|---|---|
| IMigrationServiceBuilder | This service builder, for fluent API usage. |
Type Parameters
| Name | Description |
|---|---|
| TService | The service type to override. |