#if !BESTHTTP_DISABLE_SIGNALR_CORE && !BESTHTTP_DISABLE_WEBSOCKET using System; namespace BestHTTP.SignalRCore.Encoders { /*public sealed class JsonDotNetEncoder : BestHTTP.SignalRCore.IEncoder { public string Name { get { return "json"; } } public object ConvertTo(Type toType, object obj) { string json = Newtonsoft.Json.JsonConvert.SerializeObject(obj); return Newtonsoft.Json.JsonConvert.DeserializeObject(json, toType); } public T DecodeAs(string text) { return Newtonsoft.Json.JsonConvert.DeserializeObject(text); } public T DecodeAs(byte[] data) { throw new NotImplementedException(); } public byte[] EncodeAsBinary(T value) { throw new NotImplementedException(); } public string EncodeAsText(T value) { return Newtonsoft.Json.JsonConvert.SerializeObject(value); } }*/ } #endif