Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (19 sloc) 496 Bytes
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
namespace ContactWebPack
{
public class WebPackContactXmlFormatter: XmlMediaTypeFormatter
{
public WebPackContactXmlFormatter()
{
SupportedMediaTypes.Add(Formatters.XML);
}
}
public class WebPackContactJsonFormatter : JsonMediaTypeFormatter
{
public WebPackContactJsonFormatter()
{
SupportedMediaTypes.Add(Formatters.JSON);
}
}
}
Jump to Line
Something went wrong with that request. Please try again.