Table of Contents

AddYamlFormatterOptions Method

Definition

AddYamlFormatterOptions(IServiceCollection, Action<YamlFormatterOptions>)

Adds configuration of YamlFormatterOptions for the application.

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

Parameters

services IServiceCollection

The IServiceCollection to extend.

setup Action<YamlFormatterOptions>

The YamlFormatterOptions which may be configured.

Returns

IServiceCollection

A reference to services so that additional configuration calls can be chained.

Exceptions

ArgumentNullException

services cannot be null.