16 using System.Collections;
17 using System.Collections.Generic;
29 private readonly IEnumerator<BaseData> _enumerator;
33 private readonly
bool _isUniverse;
34 private readonly
bool _dailyStrictEndTimeEnabled;
36 object IEnumerator.Current => Current;
55 IEnumerator<BaseData> enumerator,
57 bool dailyStrictEndTimeEnabled)
59 _enumerator = enumerator;
60 _offsetProvider = offsetProvider;
61 _exchangeHours = exchangeHours;
62 _configuration = configuration;
63 _isUniverse = isUniverse;
64 _dailyStrictEndTimeEnabled = dailyStrictEndTimeEnabled;
74 var result = _enumerator.MoveNext();
79 if (_enumerator.Current !=
null && !_configuration.ShouldEmitData(_enumerator.Current, _isUniverse))
85 Current =
SubscriptionData.
Create(_dailyStrictEndTimeEnabled, _configuration, _exchangeHours, _offsetProvider, _enumerator.Current, _configuration.DataNormalizationMode);
95 _enumerator.Dispose();