// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Mvc.Xml; using Microsoft.Framework.Internal; namespace Microsoft.AspNet.Mvc { public static class MvcOptionsExtensions { /// /// Adds and /// to the input and output formatter /// collections respectively. /// /// The MvcOptions public static void AddXmlDataContractSerializerFormatter([NotNull] this MvcOptions options) { options.OutputFormatters.Add(new XmlDataContractSerializerOutputFormatter()); options.InputFormatters.Add(new XmlDataContractSerializerInputFormatter()); } } }