Table of Contents

Class ResourcesSettingsLoader

Namespace
Virtufin.Api.Resources
Assembly
Virtufin.Api.dll

Reads resources.json; a missing file means resources are not configured.

public static class ResourcesSettingsLoader
Inheritance
ResourcesSettingsLoader
Inherited Members

Fields

ConfigPathKey

The setting naming the resources.json path.

public const string ConfigPathKey = "ResourcesConfigPath"

Field Value

string

DefaultConfigPath

The resources.json path when ConfigPathKey is unset.

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

Field Value

string

Methods

Load(IConfiguration)

The settings, or null without a file. Throws on a file that is there but unusable.

public static ResourcesSettings? Load(IConfiguration configuration)

Parameters

configuration IConfiguration

Returns

ResourcesSettings