Table of Contents

AddMinimalYamlOptions Method

Definition

Namespace
Codebelt.Extensions.AspNetCore.Text.Yaml
Assemblies
Codebelt.Extensions.AspNetCore.Text.Yaml.dll
Source
src/Codebelt.Extensions.AspNetCore.Text.Yaml/ServiceCollectionExtensions.cs

AddMinimalYamlOptions(IServiceCollection, Action<YamlFormatterOptions>)

Adds a YamlFormatterOptions service to the specified IServiceCollection.

public static IServiceCollection AddMinimalYamlOptions(this IServiceCollection services, Action<YamlFormatterOptions> setup = null)

Parameters

services IServiceCollection

The IServiceCollection to add services to.

setup Action<YamlFormatterOptions>

The YamlFormatterOptions which may be configured.

Returns

IServiceCollection

An IServiceCollection that can be used to further configure other services.

Exceptions

ArgumentNullException

services cannot be null.