Skip to main content

AppSettings

More familiar name for the new crowd.

Assembly: ServiceStack.dll
View Source
Declaration
public class AppSettings : AppSettingsBase, IAppSettings, ISettingsWriter, ISettings

Inherited Properties

ParsingStrategy

View Source
Declaration
public ParsingStrategyDelegate ParsingStrategy { get; set; }

Tier

View Source
Declaration
public string Tier { get; set; }

Methods

GetString(String)

Returns string if exists, otherwise null

View Source
Declaration
public override string GetString(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

Inherited Methods

Exists(String)

View Source
Declaration
public virtual bool Exists(string key)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey

Get(String)

View Source
Declaration
public string Get(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

Get<T>(String)

View Source
Declaration
public virtual T Get<T>(string name)
Returns

<T>

Parameters
TypeName
System.Stringname
Type Parameters
  • T

Get<T>(String, T)

View Source
Declaration
public virtual T Get<T>(string name, T defaultValue)
Returns

<T>

Parameters
TypeName
System.Stringname
<T>defaultValue
Type Parameters
  • T

GetAll()

View Source
Declaration
public virtual Dictionary<string, string> GetAll()
Returns

System.Collections.Generic.Dictionary<System.String,System.String>

GetAllKeys()

View Source
Declaration
public virtual List<string> GetAllKeys()
Returns

System.Collections.Generic.List<System.String>

GetDictionary(String)

View Source
Declaration
public virtual IDictionary<string, string> GetDictionary(string key)
Returns

System.Collections.Generic.IDictionary<System.String,System.String>

Parameters
TypeName
System.Stringkey

GetKeyValuePairs(String)

View Source
Declaration
public virtual List<KeyValuePair<string, string>> GetKeyValuePairs(string key)
Returns

System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.String,System.String>>

Parameters
TypeName
System.Stringkey

GetList(String)

View Source
Declaration
public virtual IList<string> GetList(string key)
Returns

System.Collections.Generic.IList<System.String>

Parameters
TypeName
System.Stringkey

GetNullableString(String)

View Source
Declaration
public virtual string GetNullableString(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

GetRequiredString(String)

View Source
Declaration
public virtual string GetRequiredString(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

GetString(String)

View Source
Declaration
public virtual string GetString(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

Init(ISettings)

View Source
Declaration
protected void Init(ISettings settings)
Parameters
TypeName
ServiceStack.Configuration.ISettingssettings

Set<T>(String, T)

View Source
Declaration
public virtual void Set<T>(string key, T value)
Parameters
TypeName
System.Stringkey
<T>value
Type Parameters
  • T

Implements