19 using System.Collections.Generic;
30 private readonly DateTime _date;
42 :base(dataCacheProvider, isLiveMode, objectStore)
46 _factory = _config.GetBaseDataInstance();
80 var result = _factory.Reader(_config, raw, _date,
IsLiveMode);
84 OnInvalidSource(source,
new Exception(
"Reader must generate a BaseDataCollection with the FileFormat.Collection"));
90 OnReaderError(raw, err);
104 yield
return instances;
108 foreach (var instance
in instances.
Data)
110 if (instance !=
null && instance.EndTime !=
default(DateTime))
112 yield
return instance;
120 reader.DisposeSafely();
129 private void OnReaderError(
string line, Exception exception)