public void DestroyDatabaseManager() { StopClientMonitor(); lock (this.Clients) { for (int i = 0; i < Clients.Length; i++) { try { Clients[i].Destroy(); Clients[i] = null; } catch (NullReferenceException) { } } } Server = null; Database = null; Clients = null; AvailableClients = null; }
public DatabaseManager(DatabaseServer _Server, Database _Database) { Server = _Server; Database = _Database; Clients = new DatabaseClient[0]; AvailableClients = new Boolean[0]; ClientStarvation = 0; StartClientMonitor(); }