IAppSettings
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IAppSettings
Methods
GetAll()
View Source
Declaration
Dictionary<string, string> GetAll()
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
GetAllKeys()
View Source
Declaration
List<string> GetAllKeys()
Returns
System.Collections.Generic.List<System.String>
Exists(String)
View Source
Declaration
bool Exists(string key)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
Set<T>(String, T)
View Source
Declaration
void Set<T>(string key, T value)
Parameters
Type | Name |
---|---|
System.String | key |
<T> | value |
Type Parameters
T
GetString(String)
View Source
Declaration
string GetString(string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
GetList(String)
View Source
Declaration
IList<string> GetList(string key)
Returns
System.Collections.Generic.IList<System.String>
Parameters
Type | Name |
---|---|
System.String | key |
GetDictionary(String)
View Source
Declaration
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
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
T Get<T>(string name)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | name |
Type Parameters
T
Get<T>(String, T)
View Source
Declaration
T Get<T>(string name, T defaultValue)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | name |
<T> | defaultValue |
Type Parameters
T