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 class MyEmberJsonMediaTypeFormatter : JsonMediaTypeFormatter | |
{ | |
private int _maxDepth = 256; | |
private JsonSerializerSettings _jsonSerializerSettings; | |
public MyEmberJsonMediaTypeFormatter() | |
{ | |
_jsonSerializerSettings = CreateDefaultSerializerSettings(); | |
} | |
public override System.Threading.Tasks.Task WriteToStreamAsync(System.Type type, object value, System.IO.Stream writeStream, System.Net.Http.HttpContent content, System.Net.TransportContext transportContext) | |
{ |