Table of Contents

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

configuration IConfiguration

Methods

LoadAsync()

Loads the service registry. Throws if the file is missing or unreadable.

public Task<ServicesConfiguration> LoadAsync()

Returns

Task<ServicesConfiguration>

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.