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();
			}
		}
Esempio n. 2
0
        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();
            }
        }