public override void ChannelRead(IChannelHandlerContext ctx, object msg)
        {
            NettyChannel channel = NettyChannel.GetOrAddChannel(ctx.Channel, _url, _handler);

            try
            {
                //Console.WriteLine("channel read:" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"));
                _handler.RecivedAsync(channel, msg).Wait();
                // Console.WriteLine("channel read completed:" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"));
            }
            finally
            {
                NettyChannel.RemoveChannelIfDisconnected(ctx.Channel);
            }
        }
 public virtual Task RecivedAsync(IChannel channel, object message)
 {
     return(_handler.RecivedAsync(channel, message));
 }