ASP.NETR7;s APIs support formatters. One of the best examples for a media formatter is a Vcalendar format that can used in calendar software such as Outlook.

After you build the custom media formatter, all of you have to do is add it to the Web configuration file. The WebApiConfig.cs is found in the _Start folder.

In the register method, add the following line:

// CustomMediaTypeFormatter is the custom media type formatter created.
config.Formatters.Add(new CustomMediaTypeFormatter());



Source link
thanks you RSS link
( http://www.devx.com/tips/dot-net/add-support-for-custom-media-in-asp.net-1709252043.html)

LEAVE A REPLY

Please enter your comment!
Please enter your name here