Created
February 24, 2017 00:30
-
-
Save ksysiekj/559767f9975970f75daccb339ef9e2e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public sealed class JilSerializationAttribute : Attribute, IControllerConfiguration | |
{ | |
public void Initialize(HttpControllerSettings controllerSettings, HttpControllerDescriptor controllerDescriptor) | |
{ | |
// Register JilMediaTypeFormatter for controller | |
controllerSettings.Formatters.Insert(0, new JilMediaTypeFormatter()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment