Class ConfigReader
Methods to read the current MigrationSdkOptions.
Implements
Namespace: Tableau.Migration.Config
Assembly: Tableau.Migration.dll
Syntax
public class ConfigReader : IConfigReader
Constructors
ConfigReader(IOptionsMonitor<MigrationSdkOptions>)
Creates a new ConfigReader object.
Declaration
public ConfigReader(IOptionsMonitor<MigrationSdkOptions> optionsMonitor)
Parameters
Type | Name | Description |
---|---|---|
IOptionsMonitor<MigrationSdkOptions> | optionsMonitor | The object to monitor configuration with. |
Methods
Get()
Get the current MigrationSdkOptions The configuration values are auto-reloaded from supplied configuration Ex: .json file.
Declaration
public MigrationSdkOptions Get()
Returns
Type | Description |
---|---|
MigrationSdkOptions |
Get<TContent>()
Get the current ContentTypesOptions for a
given content type
Declaration
public ContentTypesOptions Get<TContent>() where TContent : IContentReference
Returns
Type | Description |
---|---|
ContentTypesOptions | Options specific to the content type. |
Type Parameters
Name | Description |
---|---|
TContent |