18 using System.Collections.Generic;
32 private readonly Func<SubscriptionRequest, IEnumerator<BaseData>> _enumeratorConfigurator;
33 private readonly
bool _isLiveMode;
48 _symbolUniverse = symbolUniverse;
49 _timeProvider = timeProvider;
50 _enumeratorConfigurator = enumeratorConfigurator;
64 var subscriptionConfiguration = GetSubscriptionConfigurations(request).First();
65 var subscriptionRequest =
new SubscriptionRequest(request, configuration: subscriptionConfiguration);
66 var configuredEnumerator = _enumeratorConfigurator(subscriptionRequest);
72 throw new InvalidOperationException($
"Backtesting is expected to be using {nameof(BaseDataSubscriptionEnumeratorFactory)}");
76 private IEnumerable<SubscriptionDataConfig> GetSubscriptionConfigurations(
SubscriptionRequest request)
85 var configurations =
new List<SubscriptionDataConfig>
97 return configurations;