Class YamlExtensions
Extension methods for registering a Tenduke.Core.Config.Yaml.YamlConfigurationProvider configuration provider with TendukeConfigurationBuilder.
public static class YamlExtensions
- Inheritance
-
YamlExtensions
- Inherited Members
Methods
AddYamlFile(AsyncTendukeConfigurationBuilder, string)
Adds an IConfigurationProvider that reads configuration items from a YAML file.
public static AsyncTendukeConfigurationBuilder AddYamlFile(this AsyncTendukeConfigurationBuilder builder, string filePath)
Parameters
builder
AsyncTendukeConfigurationBuilderThe AsyncTendukeConfigurationBuilder to add to.
filePath
stringName and path of file to add.
Returns
Exceptions
- ArgumentNullException
TendukeConfigurationBuilder or
filePath
wasnull
.- FileNotFoundException
filePath
was not found.
AddYamlFile(TendukeConfigurationBuilder, string)
Adds an IConfigurationProvider that reads configuration items from a YAML file.
public static TendukeConfigurationBuilder AddYamlFile(this TendukeConfigurationBuilder builder, string filePath)
Parameters
builder
TendukeConfigurationBuilderThe TendukeConfigurationBuilder to add to.
filePath
stringName and path of file to add.
Returns
Exceptions
- ArgumentNullException
TendukeConfigurationBuilder or
filePath
wasnull
.- FileNotFoundException
filePath
was not found.