Class ServicesConfigurationLoader
- Namespace
- Virtufin.Api.Configuration
- Assembly
- Virtufin.Api.dll
public class ServicesConfigurationLoader
- Inheritance
-
ServicesConfigurationLoader
- Inherited Members
Constructors
ServicesConfigurationLoader(IConfiguration)
public ServicesConfigurationLoader(IConfiguration configuration)
Parameters
configurationIConfiguration
Fields
ConfigPathKey
The setting naming the services.json path (--services-config-path).
public const string ConfigPathKey = "ServicesConfigPath"
Field Value
DefaultConfigPath
The services.json path when ConfigPathKey is unset.
public const string DefaultConfigPath = "config/services.json"
Field Value
Methods
Load()
Loads the service registry. Throws if the file is missing or unreadable.
public ServicesConfiguration Load()
Returns
Remarks
Fails fast at startup: an empty registry would start the gateway, pass its liveness probe, and then fail every state, config and gateway call.