Пример #1
0
        public void RegisterNewEntry()
        {
            lock (_locker)
            {
                if (_firstNewOffer.HasValue)
                {
                    return;
                }

                _firstNewOffer = _dependencyFactory.DateTimeProvider.Now;
                _resetEvent.Set(); // Start checking immediately
            }
        }
Пример #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            _isWorkerRunning = false;
            _workerBarrier.Set();
            _worker?.Join();
            _worker = null;
            _workerBarrier.Dispose();
        }