public override void ChannelActive(IChannelHandlerContext ctx) { if (!this.HandleNewChannel(ctx)) { ThrowHelper.ThrowArgumentException_CannotDetermineToAcceptOrRejectAChannel(ctx); } else { ctx.FireChannelActive(); } }
public override void ChannelActive(IChannelHandlerContext ctx) { DefaultFullHttpRequest upgradeRequest = new DefaultFullHttpRequest(DotNetty.Codecs.Http.HttpVersion.Http11, HttpMethod.Get, "/", Unpooled.Empty); // Set HOST header as the remote peer may require it. var remote = (IPEndPoint)ctx.Channel.RemoteAddress; //String hostString = remote.getHostString(); //if (hostString == null) //{ // hostString = remote.getAddress().getHostAddress(); //} upgradeRequest.Headers.Set(HttpHeaderNames.Host, _self._targetHost + ':' + remote.Port); ctx.WriteAndFlushAsync(upgradeRequest); ctx.FireChannelActive(); // Done with this handler, remove it from the pipeline. ctx.Pipeline.Remove(this); _self.ConfigureEndOfPipeline(ctx.Pipeline); }
public override void ChannelActive(IChannelHandlerContext context) { SendInitialMessage(context); context.FireChannelActive(); }
public override void ChannelActive(IChannelHandlerContext context) { _logger.LogInformation("Channel active '{0}'", context.Channel.Id.AsLongText()); _activeInActiveHandler(context.Channel, true); context.FireChannelActive(); }
public override void ChannelActive(IChannelHandlerContext context) { _log.Debug("connected to {0}", context.Channel.RemoteAddress); _fsm.Tell(new ClientFSM.Connected(context.Channel)); context.FireChannelActive(); }
public void ChannelActive(IChannelHandlerContext context) { context.FireChannelActive(); }
public void ChannelActive(IChannelHandlerContext context) { context.FireChannelActive(); this.ReadIfIsAutoRead(); }
public override void ChannelActive(IChannelHandlerContext ctx) { ctx.FireChannelActive(); }
public override void ChannelActive(IChannelHandlerContext context) { context.FireChannelActive(); context.Read(); }
public override void ChannelActive(IChannelHandlerContext ctx) { _log.Debug("Channel {0} active", ctx.Channel); ctx.FireChannelActive(); }
public override void ChannelActive(IChannelHandlerContext ctx) { Console.WriteLine("激活时间是:" + DateTime.Now); Console.WriteLine("HeartBeatClientHandler channelActive"); ctx.FireChannelActive(); }
/** * channel链路每次active的时候,将其连接的次数重新☞ 0 */ public override void ChannelActive(IChannelHandlerContext ctx) { Console.WriteLine("当前链路已经激活了,重连尝试次数重新置为0"); attempts = 0; ctx.FireChannelActive(); }
public override void ChannelActive(IChannelHandlerContext context) { RegisterFiredEvent(SupportedEvent.ChannelActive); context.FireChannelActive(); }
public override void ChannelActive(IChannelHandlerContext context) { _logger.Debug($"{context.Channel} ACTIVE"); context.FireChannelActive(); }
public override void ChannelActive(IChannelHandlerContext context) { Log.Debug($"{context.Name}: ChannelActive"); context.FireChannelActive(); }
public override void ChannelActive(IChannelHandlerContext context) { Log(Event.ACTIVE); context.FireChannelActive(); }
public override void ChannelActive(IChannelHandlerContext ctx) { logger.Info($"channel active", ctx.Channel.ToString()); ctx.FireChannelActive(); }
public override void ChannelActive(IChannelHandlerContext ctx) { Logger().LogDebug($"Channel {ctx.Channel} active"); ctx.FireChannelActive(); }
public IChannelHandlerContext FireChannelActive() { _ = _ctx.FireChannelActive(); return(this); }
public override void ChannelActive(IChannelHandlerContext ctx) { if (this.Logger.IsEnabled(this.InternalLevel)) { this.Logger.Log(this.InternalLevel, this.Format(ctx, "ACTIVE")); } ctx.FireChannelActive(); }
public virtual void ChannelActive(IChannelHandlerContext context) => context.FireChannelActive();
public override void ChannelActive(IChannelHandlerContext context) { Log.Information("GeneralChannelHandler.ChannelActive() called"); context.FireChannelActive(); }