Beispiel #1
0
        internal DatabaseManagerOld(DatabasePropertyOld settings)
        {
            this.connectionString = settings.GenerateConnectionString();
            this.databaseSettings = settings;
            this.databaseClients  = new Dictionary <int, DatabaseClientOld>();
            this.lockObject       = new ReaderWriterLockSlim();

            this.clientChecker = new Task(new Action(MonitorConnections));
            this.clientChecker.Start();

            SetClientAmount(settings.minPoolSize + 100);
        }
Beispiel #2
0
        internal DatabaseManagerOld(DatabasePropertyOld settings)
        {
            this.connectionString = settings.GenerateConnectionString();
            this.databaseSettings = settings;
            this.databaseClients = new Dictionary<int, DatabaseClientOld>();
            this.lockObject = new ReaderWriterLockSlim();

            this.clientChecker = new Task(new Action(MonitorConnections));
            this.clientChecker.Start();

            SetClientAmount(settings.minPoolSize + 100);
        }