Click or drag to resize

HoarderConfiguration.LoadAsync Method

Deserializes the Hoarder configuration values from a JSON document at a specified local or remote Uri. Some 'secret' values in the config document may be overriden by environment variables with the same name as the properties, which is useful in testing. Top-level apps using the Hoarder web service will typically call this method very early in app lifetime so the configuration values are loaded.

Namespace: Orthogonal.Hoarder.StdLib
Assembly: Orthogonal.Hoarder.StdLib (in Orthogonal.Hoarder.StdLib.dll) Version: 8.0.9
Syntax
C#
public static Task<HoarderConfiguration> LoadAsync(
	string configJsonUri
)

Parameters

configJsonUri  String
The JSON document Uri may be a local file:// address or a remote http:// address.

Return Value

Task<HoarderConfiguration>
An instance of the configuration class with all fields loaded from corresponding named values in the JSON document.
Exceptions
ExceptionCondition
ApplicationExceptionThrown if there are any errors in the configuration values.
See Also