Interface IApplicationContext
Provides the functionalities of an application context.
public interface IApplicationContext
Methods
FindBooleanValue(string)
Finds a boolean value from the application context.
bool? FindBooleanValue(string key)
Parameters
key
stringThe key of the value to get.
Returns
- bool?
The boolean value.
FindBooleanValues(string)
Finds boolean values from the application context.
bool?[]? FindBooleanValues(string key)
Parameters
key
stringThe key of the values to get.
Returns
- bool?[]
The boolean values.
FindDecimalValue(string)
Finds a decimal value from the application context.
decimal? FindDecimalValue(string key)
Parameters
key
stringThe key of the value to get.
Returns
- decimal?
The decimal value.
FindDecimalValues(string)
Finds decimal values from the application context.
decimal?[]? FindDecimalValues(string key)
Parameters
key
stringThe key of the values to get.
Returns
- decimal?[]
The decimal values.
FindGuidValue(string)
Finds a GUID value from the application context.
Guid? FindGuidValue(string key)
Parameters
key
stringThe key of the value to get.
Returns
- Guid?
The GUID value.
FindGuidValues(string)
Finds GUID values from the application context.
Guid?[]? FindGuidValues(string key)
Parameters
key
stringThe key of the values to get.
Returns
- Guid?[]
The GUID values.
FindIntValue(string)
Finds an integer value from the application context.
int? FindIntValue(string key)
Parameters
key
stringThe key of the value to get.
Returns
- int?
The integer value.
FindIntValues(string)
Finds integer values from the application context.
int?[]? FindIntValues(string key)
Parameters
key
stringThe key of the values to get.
Returns
- int?[]
The integer values.
FindStringValue(string)
Finds a string value from the application context.
string? FindStringValue(string key)
Parameters
key
stringThe key of the value to get.
Returns
- string
The string value.
FindStringValues(string)
Finds string values from the application context.
string?[]? FindStringValues(string key)
Parameters
key
stringThe key of the values to get.
Returns
- string[]
The string values.
GetBooleanValue(string)
Gets a boolean value from the application context.
bool GetBooleanValue(string key)
Parameters
key
stringThe key of the value to get.
Returns
- bool
The boolean value.
Exceptions
- KeyNotFoundException
Thrown when the key does not exist.
GetBooleanValues(string)
Gets boolean values from the application context.
bool?[] GetBooleanValues(string key)
Parameters
key
stringThe key of the values to get.
Returns
- bool?[]
The boolean values.
Exceptions
- KeyNotFoundException
Thrown when the key does not exist.
GetDecimalValue(string)
Gets a decimal value from the application context.
decimal GetDecimalValue(string key)
Parameters
key
stringThe key of the value to get.
Returns
- decimal
The decimal value.
Exceptions
- KeyNotFoundException
Thrown when the key does not exist.
GetDecimalValues(string)
Gets decimal values from the application context.
decimal?[] GetDecimalValues(string key)
Parameters
key
stringThe key of the values to get.
Returns
- decimal?[]
The decimal values.
Exceptions
- KeyNotFoundException
Thrown when the key does not exist.
GetGuidValue(string)
Gets a GUID value from the application context.
Guid GetGuidValue(string key)
Parameters
key
stringThe key of the value to get.
Returns
- Guid
The GUID value.
Exceptions
- KeyNotFoundException
Thrown when the key does not exist.
GetGuidValues(string)
Gets GUID values from the application context.
Guid?[] GetGuidValues(string key)
Parameters
key
stringThe key of the values to get.
Returns
- Guid?[]
The GUID values.
Exceptions
- KeyNotFoundException
Thrown when the key does not exist.
GetIntValue(string)
Gets an integer value from the application context.
int GetIntValue(string key)
Parameters
key
stringThe key of the value to get.
Returns
- int
The integer value.
Exceptions
- KeyNotFoundException
Thrown when the key does not exist.
GetIntValues(string)
Gets integer values from the application context.
int?[] GetIntValues(string key)
Parameters
key
stringThe key of the values to get.
Returns
- int?[]
The integer values.
Exceptions
- KeyNotFoundException
Thrown when the key does not exist.
GetRawValues(bool)
Gets all key/values of the application context.
IDictionary<string, string> GetRawValues(bool includeInternalKey = false)
Parameters
includeInternalKey
boolFor include internal key, only for neos purpose.
Returns
- IDictionary<string, string>
Dictionary all key value pair.
GetStringValue(string)
Gets a string value from the application context.
string GetStringValue(string key)
Parameters
key
stringThe key of the value to get.
Returns
- string
The string value.
Exceptions
- KeyNotFoundException
Thrown when the key does not exist.
GetStringValues(string)
Gets string values from the application context.
string?[] GetStringValues(string key)
Parameters
key
stringThe key of the values to get.
Returns
- string[]
The string values.
Exceptions
- KeyNotFoundException
Thrown when the key does not exist.