Skip to main content

SimpleAppSettings

Assembly: ServiceStack.Common.dll​
View Source​
Declaration
public class SimpleAppSettings : IAppSettings

Methods​

GetAll()​

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

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

GetAllKeys()​

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

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

Exists(String)​

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

System.Boolean

Parameters​
TypeName
System.Stringkey

Set<T>(String, T)​

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

GetString(String)​

View Source​
Declaration
public string GetString(string key)
Returns​

System.String

Parameters​
TypeName
System.Stringkey

GetList(String)​

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

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

Parameters​
TypeName
System.Stringkey

GetDictionary(String)​

View Source​
Declaration
public 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 List<KeyValuePair<string, string>> GetKeyValuePairs(string key)
Returns​

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

Parameters​
TypeName
System.Stringkey

Get<T>(String)​

View Source​
Declaration
public T Get<T>(string key)
Returns​

<T>

Parameters​
TypeName
System.Stringkey
Type Parameters​
  • T

Get<T>(String, T)​

View Source​
Declaration
public T Get<T>(string key, T defaultValue)
Returns​

<T>

Parameters​
TypeName
System.Stringkey
<T>defaultValue
Type Parameters​
  • T

Implements​