Example #1
0
 public override void ExceptionCaught(IChannelHandlerContext context, Exception ex)
 {
     this._service.OnException(new SocketContext <TMessage>(context.Channel, this._protocol), ex);
     listener.ServiceException(ex);
     context.CloseAsync(); //关闭连接
 }