public void Initialize(ReconcileStudyProcessorContext context, bool complete) { Platform.CheckForNullReference(context, "context"); Context = context; ReconcileMergeToExistingStudyDescriptor desc = XmlUtils.Deserialize<ReconcileMergeToExistingStudyDescriptor>(Context.History.ChangeDescription); MergeStudyCommand command = new MergeStudyCommand(Context, context.History.DestStudyStorageKey == null, desc.Commands, complete); AddCommand(command); if (complete) { AddCleanupCommands(); } }
public void Initialize(ReconcileStudyProcessorContext context, bool complete) { Platform.CheckForNullReference(context, "context"); Context = context; ReconcileMergeToExistingStudyDescriptor desc = XmlUtils.Deserialize <ReconcileMergeToExistingStudyDescriptor>(Context.History.ChangeDescription); MergeStudyCommand command = new MergeStudyCommand(Context, context.History.DestStudyStorageKey == null, desc.Commands, complete); AddCommand(command); if (complete) { AddCleanupCommands(); } }