示例#1
0
        public void AddClientFromLog(IPEndPoint id)
        {
            System.Diagnostics.Debug.Assert(_clients.Count(x => x.ID.Equals(id)) == 0);

            var client = new Client(this, id);
            client.ResetKnownLogs();
            _clients.Add(client);
        }
示例#2
0
        public Client GetClient(IPEndPoint id)
        {
            var client = _clients.FirstOrDefault(x => x.ID.Equals(id));
            if (client == null)
                client = new Client(this, id);

            return client;
        }