#if !BESTHTTP_DISABLE_SIGNALR_CORE using System; using System.Collections.Generic; using BestHTTP.SignalRCore.Messages; namespace BestHTTP.SignalRCore.Encoders { public sealed class MessagePackEncoder : BestHTTP.SignalRCore.IEncoder { public string Name { get { return "messagepack"; } } public object ConvertTo(Type toType, object obj) { throw new NotImplementedException(); } public T DecodeAs(string text) { throw new NotImplementedException(); } public T DecodeAs(byte[] data) { throw new NotImplementedException(); } public byte[] EncodeAsBinary(T value) { throw new NotImplementedException(); } public string EncodeAsText(T value) { throw new NotImplementedException(); } } public sealed class MessagePackProtocol : BestHTTP.SignalRCore.IProtocol { public TransferModes Type { get { return TransferModes.Binary; } } public IEncoder Encoder { get; private set; } public HubConnection Connection { get; set; } public MessagePackProtocol() { this.Encoder = new MessagePackEncoder(); } /// /// Convert a value to the given type. /// public object ConvertTo(Type toType, object obj) { throw new NotImplementedException(); } /// /// This function must return the encoded representation of the given message. /// public byte[] EncodeMessage(Message message) { throw new NotImplementedException(); } /// /// This function must convert all element in the arguments array to the corresponding type from the argTypes array. /// public object[] GetRealArguments(Type[] argTypes, object[] arguments) { throw new NotImplementedException(); } /// /// This function must parse binary representation of the messages into the list of Messages. /// public void ParseMessages(string data, ref List messages) { throw new NotImplementedException(); } /// /// This function must parse textual representation of the messages into the list of Messages. /// public void ParseMessages(byte[] data, ref List messages) { throw new NotImplementedException(); } } } #endif