@@ -72,7 +72,7 @@ public IEnumerator<BaseData> CreateEnumerator(SubscriptionRequest request, IData
7272 var source = sourceFactory . GetSource ( config , localDate , true ) ;
7373
7474 // fetch the new source and enumerate the data source reader
75- var enumerator = EnumerateDataSourceReader ( config , dataProvider , frontier , source , localDate ) ;
75+ var enumerator = EnumerateDataSourceReader ( config , dataProvider , frontier , source , localDate , sourceFactory ) ;
7676
7777 if ( SourceRequiresFastForward ( source ) )
7878 {
@@ -127,12 +127,12 @@ public IEnumerator<BaseData> CreateEnumerator(SubscriptionRequest request, IData
127127 return refresher ;
128128 }
129129
130- private IEnumerator < BaseData > EnumerateDataSourceReader ( SubscriptionDataConfig config , IDataProvider dataProvider , Ref < DateTime > localFrontier , SubscriptionDataSource source , DateTime localDate )
130+ private IEnumerator < BaseData > EnumerateDataSourceReader ( SubscriptionDataConfig config , IDataProvider dataProvider , Ref < DateTime > localFrontier , SubscriptionDataSource source , DateTime localDate , BaseData baseDataInstance )
131131 {
132132 using ( var dataCacheProvider = new SingleEntryDataCacheProvider ( dataProvider ) )
133133 {
134134 var newLocalFrontier = localFrontier . Value ;
135- var dataSourceReader = GetSubscriptionDataSourceReader ( source , dataCacheProvider , config , localDate ) ;
135+ var dataSourceReader = GetSubscriptionDataSourceReader ( source , dataCacheProvider , config , localDate , baseDataInstance ) ;
136136 foreach ( var datum in dataSourceReader . Read ( source ) )
137137 {
138138 // always skip past all times emitted on the previous invocation of this enumerator
@@ -177,10 +177,11 @@ private IEnumerator<BaseData> EnumerateDataSourceReader(SubscriptionDataConfig c
177177 protected virtual ISubscriptionDataSourceReader GetSubscriptionDataSourceReader ( SubscriptionDataSource source ,
178178 IDataCacheProvider dataCacheProvider ,
179179 SubscriptionDataConfig config ,
180- DateTime date
180+ DateTime date ,
181+ BaseData baseDataInstance
181182 )
182183 {
183- return SubscriptionDataSourceReader . ForSource ( source , dataCacheProvider , config , date , true ) ;
184+ return SubscriptionDataSourceReader . ForSource ( source , dataCacheProvider , config , date , true , baseDataInstance ) ;
184185 }
185186
186187 private bool SourceRequiresFastForward ( SubscriptionDataSource source )
0 commit comments