Skip to main content

MultiAppSettingsBuilder

Represents a builder for the ServiceStack.Configuration.MultiAppSettings class.

Assembly: ServiceStack.dll
View Source
Declaration
public class MultiAppSettingsBuilder

Methods

AddAppSettings()

Adds an ServiceStack.Configuration.AppSettings that reads configuration values from the Web.config file.

View Source
Declaration
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
Declaration
public MultiAppSettingsBuilder AddAppSettings(string tier)
Returns

ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.

Parameters
TypeNameDescription
System.StringtierThe tier of the ServiceStack.Configuration.AppSettings.

|

AddDictionarySettings(Dictionary<String, String>)

Adds a ServiceStack.Configuration.DictionarySettings that reads configuration values from a dictionary.

View Source
Declaration
public MultiAppSettingsBuilder AddDictionarySettings(Dictionary<string, string> map)
Returns

ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.

Parameters
TypeNameDescription
System.Collections.Generic.Dictionary<System.String,System.String>mapThe dictionary of settings to add.

|

AddEnvironmentalVariables()

Adds an ServiceStack.Configuration.EnvironmentVariableSettings that reads configuration values from environmental variables.

View Source
Declaration
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
Declaration
public MultiAppSettingsBuilder AddEnvironmentalVariables(string tier)
Returns

ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.

Parameters
TypeNameDescription
System.StringtierThe 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
Declaration
public MultiAppSettingsBuilder AddTextFile(string path)
Returns

ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.

Parameters
TypeNameDescription
System.StringpathThe 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
Declaration
public MultiAppSettingsBuilder AddTextFile(string path, string delimeter)
Returns

ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.

Parameters
TypeNameDescription
System.StringpathThe 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
Declaration
public MultiAppSettingsBuilder AddTextFile(string path, string delimeter, string tier)
Returns

ServiceStack.Configuration.MultiAppSettingsBuilder: The ServiceStack.Configuration.MultiAppSettingsBuilder.

Parameters
TypeNameDescription
System.StringpathThe 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
Declaration
public IAppSettings Build()
Returns

ServiceStack.Configuration.IAppSettings: An ServiceStack.Configuration.IAppSettings.