void CheckDisposed() { if (Volatile2.Read(ref _disposed) == 1) { throw new ObjectDisposedException(nameof(FbConnectionPoolManager)); } }
void CleanupCallback(object o) { if (Volatile2.Read(ref _disposed) == 1) { return; } _pools.Values.AsParallel().ForAll(x => x.CleanupPool()); _cleanupTimer.Change(TimeSpan.FromSeconds(2), TimeoutHelper.InfiniteTimeSpan); }