Table of Contents

Class YamlExtensions

Namespace
Tenduke.Core.Config
Assembly
Tenduke.Core.dll

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 AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder to add to.

filePath string

Name and path of file to add.

Returns

AsyncTendukeConfigurationBuilder

The AsyncTendukeConfigurationBuilder.

Exceptions

ArgumentNullException

TendukeConfigurationBuilder or filePath was null.

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 TendukeConfigurationBuilder

The TendukeConfigurationBuilder to add to.

filePath string

Name and path of file to add.

Returns

TendukeConfigurationBuilder

The TendukeConfigurationBuilder.

Exceptions

ArgumentNullException

TendukeConfigurationBuilder or filePath was null.

FileNotFoundException

filePath was not found.