public void RegisterNewEntry() { lock (_locker) { if (_firstNewOffer.HasValue) { return; } _firstNewOffer = _dependencyFactory.DateTimeProvider.Now; _resetEvent.Set(); // Start checking immediately } }
protected virtual void Dispose(bool disposing) { if (!disposing) { return; } _isWorkerRunning = false; _workerBarrier.Set(); _worker?.Join(); _worker = null; _workerBarrier.Dispose(); }