MultiAppSettingsBuilder
Represents a builder for the ServiceStack.Configuration.MultiAppSettings class.
Assembly: ServiceStack.dll
View Source
public class MultiAppSettingsBuilder
Methods
AddAppSettings()
Adds an ServiceStack.Configuration.AppSettings that reads configuration values from the Web.config file.
View Source
public MultiAppSettingsBuilder AddAppSettings()
Returns
ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.
AddAppSettings(String)
Adds an ServiceStack.Configuration.AppSettings that reads configuration values from the Web.config file.
View Source
public MultiAppSettingsBuilder AddAppSettings(string tier)
Returns
ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.
Parameters
Type | Name | Description |
---|---|---|
System.String | tier | The tier of the ServiceStack.Configuration.AppSettings. |
|
AddDictionarySettings(Dictionary<String, String>)
Adds a ServiceStack.Configuration.DictionarySettings that reads configuration values from a dictionary.
View Source
public MultiAppSettingsBuilder AddDictionarySettings(Dictionary<string, string> map)
Returns
ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String,System.String> | map | The dictionary of settings to add. |
|
AddEnvironmentalVariables()
Adds an ServiceStack.Configuration.EnvironmentVariableSettings that reads configuration values from environmental variables.
View Source
public MultiAppSettingsBuilder AddEnvironmentalVariables()
Returns
ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.
AddEnvironmentalVariables(String)
Adds an ServiceStack.Configuration.EnvironmentVariableSettings that reads configuration values from environmental variables.
View Source
public MultiAppSettingsBuilder AddEnvironmentalVariables(string tier)
Returns
ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.
Parameters
Type | Name | Description |
---|---|---|
System.String | tier | The tier of the ServiceStack.Configuration.AppSettings. |
|
AddTextFile(String)
Adds an ServiceStack.Configuration.TextFileSettings that reads configuration values from a text file at <code data-dev-comment-type="paramref" class="paramref">path</code>.
View Source
public MultiAppSettingsBuilder AddTextFile(string path)
Returns
ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path of the text file. |
|
AddTextFile(String, String)
Adds an ServiceStack.Configuration.TextFileSettings that reads configuration values from a text file at <code data-dev-comment-type="paramref" class="paramref">path</code> with a specified <code data-dev-comment-type="paramref" class="paramref">delimeter</code>.
View Source
public MultiAppSettingsBuilder AddTextFile(string path, string delimeter)
Returns
ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path of the text file. |
|
| System.String
| delimeter | The delimeter fo the text file.
|
AddTextFile(String, String, String)
Adds an ServiceStack.Configuration.TextFileSettings that reads configuration values from a text file at <code data-dev-comment-type="paramref" class="paramref">path</code> with a specified <code data-dev-comment-type="paramref" class="paramref">delimeter</code>.
View Source
public MultiAppSettingsBuilder AddTextFile(string path, string delimeter, string tier)
Returns
ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path of the text file. |
|
| System.String
| delimeter | The delimeter fo the text file.
|
| System.String
| tier | The tier of the ServiceStack.Configuration.TextFileSettings.
|
Build()
Builds an ServiceStack.Configuration.IAppSettings.
View Source
public IAppSettings Build()
Returns
ServiceStack.Configuration.IAppSettings: An ServiceStack.Configuration.IAppSettings.