Table of Contents

Interface IResolvableConfig

Namespace
Invex.Rez.Configuration
Assembly
Invex.Rez.Configuration.dll

An Microsoft.Extensions.Configuration.IConfigurationRoot whose values are resolved with an IResolver on read, allowing configuration values to contain Rez templates (e.g., "{baseUrl}/api").

[PublicAPI]
public interface IResolvableConfig

Remarks

Values returned via the indexer, sections, and Invex.Rez.Configuration.ResolvableConfigurationSection children are resolved automatically; writes pass through to the underlying configuration unmodified.

Properties

Resolver

The IResolver used to resolve configuration values.

IResolver Resolver { get; }

Property Value

IResolver

Methods

Resolve(string?)

Resolves variables and functions within the given text using Resolver.

string? Resolve(string? value)

Parameters

value string

The template text containing variables and/or functions to be resolved.

Returns

string

The resolved output text, or null if value is null.

Exceptions

RezResolutionException

Thrown by the default IResolver if recursion exceeds its depth limit, such as for a cycle like a = {b}, b = {a}.