Table of Contents

Class ServiceCollectionExtensions

Namespace
Cuemon.Extensions.AspNetCore.Xml
Assembly
Cuemon.Extensions.AspNetCore.Xml.dll

Extension methods for the IServiceCollection interface.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions

Methods

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.