20 using System.Collections;
22 using System.Collections.Generic;
34 private readonly Queue<BaseData> _auxiliaryData;
35 private bool _initialized;
36 private DateTime _startTime;
64 _startTime = startTime;
65 _mapFileProvider = mapFileProvider;
66 _auxiliaryData =
new Queue<BaseData>();
67 _factorFileProvider = factorFileProvider;
68 _tradableDateEventProviders = tradableDateEventProviders;
70 if (tradableDayNotifier !=
null)
82 Current = _auxiliaryData.Count != 0 ? _auxiliaryData.Dequeue() :
null;
92 for (var i = 0; i < _tradableDateEventProviders.Length; i++)
94 foreach (var newEvent
in _tradableDateEventProviders[i].GetEvents(eventArgs))
96 _auxiliaryData.Enqueue(newEvent);
110 for (var i = 0; i < _tradableDateEventProviders.Length; i++)
112 _tradableDateEventProviders[i].
Initialize(
Config, _factorFileProvider, _mapFileProvider, _startTime);
122 for (var i = 0; i < _tradableDateEventProviders.Length; i++)
124 var disposable =_tradableDateEventProviders[i] as IDisposable;
125 disposable?.DisposeSafely();
135 throw new NotImplementedException(
"Reset method not implemented. Assumes loop will only be used once.");
138 object IEnumerator.Current => Current;