Table of Contents

AddMinimalXmlOptions Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Xml
Assemblies
Cuemon.Extensions.AspNetCore.Xml.dll
Source
src/Cuemon.Extensions.AspNetCore.Xml/ServiceCollectionExtensions.cs

AddMinimalXmlOptions(IServiceCollection, Action<XmlFormatterOptions>)

Adds a XmlFormatterOptions service to the specified IServiceCollection.

public static IServiceCollection AddMinimalXmlOptions(this IServiceCollection services, Action<XmlFormatterOptions> setup = null)

Parameters

services IServiceCollection

The IServiceCollection to add services to.

setup Action<XmlFormatterOptions>

The XmlFormatterOptions which may be configured.

Returns

IServiceCollection

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

Exceptions

ArgumentNullException

services cannot be null.