NetCoreAppSettings
Assembly: ServiceStack.dll
View Source
Declaration
public class NetCoreAppSettings : object, IAppSettings
Properties
Configuration
View Source
Declaration
public IConfiguration Configuration { get; }
Methods
GetAll()
View Source
Declaration
public Dictionary<string, string> GetAll()
Returns
Dictionary<System.String,System.String>
GetAllKeys()
View Source
Declaration
public List<string> GetAllKeys()
Returns
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 name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | name |
GetList(String)
View Source
Declaration
public IList<string> GetList(string key)
Returns
IList<System.String>
Parameters
Type | Name |
---|---|
System.String | key |
GetDictionary(String)
View Source
Declaration
public IDictionary<string, string> GetDictionary(string key)
Returns
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
List<KeyValuePair<System.String,System.String>>
Parameters
Type | Name |
---|---|
System.String | key |
Get<T>(String)
View Source
Declaration
public T Get<T>(string name)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | name |
Type Parameters
T
Get<T>(String, T)
View Source
Declaration
public T Get<T>(string name, T defaultValue)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | name |
<T> | defaultValue |
Type Parameters
T