public void Dispose(IDataLoadEventListener listener, Exception pipelineFailureExceptionIfAny) { //if it didn't crash if (pipelineFailureExceptionIfAny == null) { if (FreezeAfterSuccessfulImport) { listener.OnNotify(this, new NotifyEventArgs(ProgressEventType.Information, "Freezing CohortIdentificationConfiguration")); _cohortIdentificationConfiguration.Freeze(); } } }
public override void Execute() { base.Execute(); if (_desiredFreezeState) { _cic.Freeze(); } else { _cic.Unfreeze(); } Publish(_cic); }