Ejemplo n.º 1
0
        public override void ChannelActive(IChannelHandlerContext ctx)
        {
            _deviceProvider.Register(ctx);
            var tcpEntry = _tcpServiceEntryProvider.GetEntry();

            tcpEntry.Behavior.DeviceStatusProcess(DeviceStatus.Connected, ctx.Channel.Id.AsLongText(), _tcpServerProperties);
            if (_logger.IsEnabled(LogLevel.Information))
            {
                _logger.LogInformation("channel active:" + ctx.Channel.RemoteAddress);
            }
        }