public override void ChannelRead(IChannelHandlerContext context, object message)
 {
     _service.OnReceive(context, message);
 }
示例#2
0
 protected override void ChannelRead0(IChannelHandlerContext context, TMessage msg)
 {
     listener.ServiceReceive(msg);
     _service.OnReceive(new SocketContext <TMessage>(context.Channel), msg);
     listener.ServiceReceiveCompleted(msg);
 }