AddXmlFormatterOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Xml.Formatters
- Assemblies
- Cuemon.Extensions.AspNetCore.Xml.dll
AddXmlFormatterOptions(IServiceCollection, Action<XmlFormatterOptions>)
Adds configuration of XmlFormatterOptions for the application.
public static IServiceCollection AddXmlFormatterOptions(this IServiceCollection services, Action<XmlFormatterOptions> setup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
setupAction<XmlFormatterOptions>The XmlFormatterOptions which may be configured.
Returns
- IServiceCollection
A reference to
servicesso that additional configuration calls can be chained.
Exceptions
- ArgumentNullException
servicescannot be null.- ArgumentException
setupfailed to configure an instance of XmlFormatterOptions in a valid state.