Creates a config value from an action that uses the settings and returns null.
- Namespace
- Statiq
.Common - Containing Type
- Config
Syntax
public static Config<object> FromSettings(Func<IReadOnlySettings, Task> action)
Parameters
Name | Type | Description |
---|---|---|
action | Func |
A delegate action to evaluate. |
Return Value
Type | Description |
---|---|
Config |
A config object. |