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
Methods
LoadAsync()
Loads the service registry. Throws if the file is missing or unreadable.
public Task<ServicesConfiguration> LoadAsync()
Returns
Remarks
This used to fail open: a missing file logged a Console.WriteLine warning
and returned an empty registry, so a misconfigured deploy of the platform's central
mediator started successfully, passed its liveness probe, and then failed every
state, config, and gateway call. Failing fast at startup surfaces the
misconfiguration where it can still be caught.