FromSettings<TValue>(Func<IReadOnlySettings, Task<TValue>>) Method
Creates a config value from a delegate that uses the settings.
Namespace
Statiq.Common
Containing Type
Config

Syntax

public static Config<TValue> FromSettings<TValue>(Func<IReadOnlySettings, Task<TValue>> func)

Type Parameters

Name Description
TValue The type of config value.

Parameters

Name Type Description
func Func<IReadOnlySettings, Task<TValue>> The delegate that produces the config value.

Return Value

Type Description
Config<TValue> A config object.