Skip to main content

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
TypeName
System.Stringkey

Set<T>(String, T)

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

GetString(String)

View Source
Declaration
string GetString(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

GetList(String)

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

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

Parameters
TypeName
System.Stringkey

GetDictionary(String)

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

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

Parameters
TypeName
System.Stringkey

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
TypeName
System.Stringkey

Get<T>(String)

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

<T>

Parameters
TypeName
System.Stringname
Type Parameters
  • T

Get<T>(String, T)

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

<T>

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