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); }
private void Server_Disconnected(Server sender, DisConnectedArgs e) { Console.WriteLine($"{e.IpAddress} : Exit"); }
private void Bootstrap_Disconnected(object sender, DisConnectedArgs args) { var removed = RemoveTransport(args.EndPoint, out var _); }
private void Channel_DisConnected(object sender, DisConnectedArgs args) { TryRemoveById(args.ContextId); StartConnect(args.EndPoint); }