示例#1
0
        public override async Task DisconnectAsync(IChannelHandlerContext ctx)
        {
            NettyChannel channel = NettyChannel.GetOrAddChannel(ctx.Channel, _url, _handler);

            try
            {
                await _handler.DisconnectAsync(channel);
            }
            finally
            {
                NettyChannel.RemoveChannelIfDisconnected(ctx.Channel);
            }
        }
示例#2
0
 public virtual Task DisconnectAsync(IChannel channel)
 {
     return(_handler.DisconnectAsync(channel));
 }