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
Type | Name |
---|---|
System.String | key |
Set<T>(String, T)
View Source
Declaration
public void Set<T>(string key, T value)
Parameters
Type | Name |
---|---|
System.String | key |
<T> | value |
Type Parameters
T
GetString(String)
View Source
Declaration
public string GetString(string key)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
GetList(String)
View Source
Declaration
public IList<string> GetList(string key)
Returns
System.Collections.Generic.IList<System.String>
Parameters
Type | Name |
---|---|
System.String | key |
GetDictionary(String)
View Source
Declaration
public IDictionary<string, string> GetDictionary(string key)
Returns
System.Collections.Generic.IDictionary<System.String,System.String>
Parameters
Type | Name |
---|---|
System.String | key |
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
Type | Name |
---|---|
System.String | key |
Get<T>(String)
View Source
Declaration
public T Get<T>(string key)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | key |
Type Parameters
T
Get<T>(String, T)
View Source
Declaration
public T Get<T>(string key, T defaultValue)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | key |
<T> | defaultValue |
Type Parameters
T