Skip to main content

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
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 name)
Returns

System.String

Parameters
TypeName
System.Stringname

GetList(String)

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

IList<System.String>

Parameters
TypeName
System.Stringkey

GetDictionary(String)

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

IDictionary<System.String,System.String>

Parameters
TypeName
System.Stringkey

GetKeyValuePairs(String)

View Source
Declaration
public List<KeyValuePair<string, string>> GetKeyValuePairs(string key)
Returns

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

Parameters
TypeName
System.Stringkey

Get<T>(String)

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

<T>

Parameters
TypeName
System.Stringname
Type Parameters
  • T

Get<T>(String, T)

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

<T>

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

Implements