Example #1
0
        public void OnChannelInactive(IChannelHandlerContext context)
        {
            var args = new DisConnectedArgs();

            args.EndPoint  = context.Channel.RemoteAddress;
            args.ContextId = context.Channel.Id.AsLongText();
            this.DisConnected?.Invoke(this, args);
        }
Example #2
0
 private void Server_Disconnected(Server sender, DisConnectedArgs e)
 {
     Console.WriteLine($"{e.IpAddress} : Exit");
 }
Example #3
0
 private void Bootstrap_Disconnected(object sender, DisConnectedArgs args)
 {
     var removed = RemoveTransport(args.EndPoint, out var _);
 }
Example #4
0
 private void Channel_DisConnected(object sender, DisConnectedArgs args)
 {
     TryRemoveById(args.ContextId);
     StartConnect(args.EndPoint);
 }