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); } }
public virtual Task DisconnectAsync(IChannel channel) { return(_handler.DisconnectAsync(channel)); }