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); }
public Client GetClient(IPEndPoint id) { var client = _clients.FirstOrDefault(x => x.ID.Equals(id)); if (client == null) client = new Client(this, id); return client; }