AddXmlFormatters Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml.dll
AddXmlFormatters(IMvcCoreBuilder, Action<XmlFormatterOptions>)
Adds the XML serializer formatters to MVC.
public static IMvcCoreBuilder AddXmlFormatters(this IMvcCoreBuilder builder, Action<XmlFormatterOptions> setup = null)
Parameters
builderIMvcCoreBuilderThe IMvcCoreBuilder.
setupAction<XmlFormatterOptions>The XmlFormatterOptions which may be configured.
Returns
- IMvcCoreBuilder
A reference to
builderafter the operation has completed.
Exceptions
- ArgumentNullException
buildercannot be null -or-setupcannot be null.