Class TableauApiSimulatorFactory
Default ITableauApiSimulatorFactory implementation.
Implements
Namespace: Tableau.Migration.Api.Simulation
Assembly: Tableau.Migration.dll
Syntax
public class TableauApiSimulatorFactory : ITableauApiSimulatorFactory
Constructors
TableauApiSimulatorFactory(ITableauApiSimulatorCollection, IHttpContentSerializer)
Creates a new TableauApiSimulatorFactory object.
Declaration
public TableauApiSimulatorFactory(ITableauApiSimulatorCollection simulators, IHttpContentSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
ITableauApiSimulatorCollection | simulators | The simulator collection. |
IHttpContentSerializer | serializer | The serializer. |
Methods
GetOrCreate(Uri, bool)
Creates an API simulator for the given server URL, or retrieves the existing simulator.
Declaration
public TableauApiSimulator GetOrCreate(Uri serverUrl, bool isTableauServer)
Parameters
Type | Name | Description |
---|---|---|
Uri | serverUrl | The base server URL to get or create the API simulator for. |
bool | isTableauServer | Indicates whether the current Tableau Data is for Tableau Server (true) or Tableau Cloud (false). |
Returns
Type | Description |
---|---|
TableauApiSimulator | The API simulator. |