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

Fields

ConfigPathKey

The setting naming the services.json path (--services-config-path).

public const string ConfigPathKey = "ServicesConfigPath"

Field Value

string

DefaultConfigPath

The services.json path when ConfigPathKey is unset.

public const string DefaultConfigPath = "config/services.json"

Field Value

string

Methods

Load()

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

public ServicesConfiguration Load()

Returns

ServicesConfiguration

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.