You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
727 B
24 lines
727 B
#if !BESTHTTP_DISABLE_SIGNALR |
|
|
|
using System.Collections.Generic; |
|
|
|
namespace BestHTTP.SignalR.JsonEncoders |
|
{ |
|
/// <summary> |
|
/// Interface to be able to write custom Json encoders/decoders. |
|
/// </summary> |
|
public interface IJsonEncoder |
|
{ |
|
/// <summary> |
|
/// This function must create a json formatted string from the given object. If the encoding fails, it should return null. |
|
/// </summary> |
|
string Encode(object obj); |
|
|
|
/// <summary> |
|
/// This function must create a dictionary the Json formatted string parameter. If the decoding fails, it should return null. |
|
/// </summary> |
|
IDictionary<string, object> DecodeMessage(string json); |
|
} |
|
} |
|
|
|
#endif |