public class JsonServerFormatterSinkProvider : IServerFormatterSinkProvider
{
public IServerChannelSink CreateSink(IChannelReceiver channel)
{
if (this.Next != null)
{
var nextChannelSink = Next.CreateSink(channel);
if (nextChannelSink != null)
return new JsonServerFormatterSink(nextChannelSink);
}
return null;
}
public void GetChannelData(IChannelDataStore channelData) { }
public IServerChannelSinkProvider Next { get; set; }
}
base remoting protocol is same as .net remoting,
https://github.com/wsky/RemotingProtocolParser
https://github.com/wsky/RemotingProtocolParser/blob/master/csharp/RemotingProtocolParserTest/Remoting.cs#L47