public override void ChannelInactive(IChannelHandlerContext context)
 {
     if (_logger.IsEnabled(LogLevel.Debug))
     {
         _logger.LogDebug("通信断开");
     }
     _service.OnDisconnected(context);
 }
 private void FireOnDisconnected(ConnectionEventArgs e)
 {
     FSocketService.OnDisconnected(e);
 }
Exemple #3
0
 public override void ChannelInactive(IChannelHandlerContext context)
 {
     _service.OnDisconnected(new SocketContext <TMessage>(context.Channel));
     base.ChannelInactive(context);
 }