1010using Rdmp . Core . DataLoad . Engine . Pipeline . Destinations ;
1111using Rdmp . Core . ReusableLibraryCode . Checks ;
1212using Rdmp . Core . ReusableLibraryCode . Progress ;
13+ using Rdmp . Core . CommandExecution ;
1314
1415namespace HICPlugin . DataFlowComponents ;
1516
@@ -87,7 +88,7 @@ public void Dispose(IDataLoadEventListener listener, Exception pipelineFailureEx
8788 dest . AddExplicitWriteType ( _privateIdentifier , "varchar(10)" ) ;
8889
8990 dest . AllowResizingColumnsAtUploadTime = true ;
90- dest . PreInitialize ( cohortDatabase , listener ) ;
91+ dest . PreInitialize ( null , cohortDatabase , listener ) ;
9192 dest . ProcessPipelineData ( AllAtOnceDataTable , listener , new GracefulCancellationToken ( ) ) ;
9293 dest . Dispose ( listener , null ) ;
9394
@@ -167,13 +168,6 @@ public void Abort(IDataLoadEventListener listener)
167168
168169 }
169170
170- public void PreInitialize ( ICohortCreationRequest value , IDataLoadEventListener listener )
171- {
172- Request = value ;
173- var syntaxHelper = value . NewCohortDefinition . LocationOfCohort . GetQuerySyntaxHelper ( ) ;
174- _privateIdentifier = syntaxHelper . GetRuntimeName ( Request . NewCohortDefinition . LocationOfCohort . PrivateIdentifierField ) ;
175- }
176-
177171 public void Check ( ICheckNotifier notifier )
178172 {
179173
@@ -211,4 +205,11 @@ public void Check(ICheckNotifier notifier)
211205
212206
213207 }
208+
209+ public void PreInitialize ( IBasicActivateItems activator , ICohortCreationRequest value , IDataLoadEventListener listener )
210+ {
211+ Request = value ;
212+ var syntaxHelper = value . NewCohortDefinition . LocationOfCohort . GetQuerySyntaxHelper ( ) ;
213+ _privateIdentifier = syntaxHelper . GetRuntimeName ( Request . NewCohortDefinition . LocationOfCohort . PrivateIdentifierField ) ;
214+ }
214215}
0 commit comments