Ejemplo n.º 1
0
		/// <summary>
		/// Creates an instance of <see cref="MergeStudyCommand"/>
		/// </summary>
		public MergeStudyCommand(ReconcileStudyProcessorContext context, bool updateDestination, List<BaseImageLevelUpdateCommand> commands, bool complete)
			: base("Merge Study", true, context)
		{
			_updateDestination = updateDestination;
			_commands = commands;
			_complete = complete;
		}
Ejemplo n.º 2
0
 /// <summary>
 /// Creates an instance of <see cref="MergeStudyCommand"/>
 /// </summary>
 public MergeStudyCommand(ReconcileStudyProcessorContext context, bool updateDestination, List <BaseImageLevelUpdateCommand> commands, bool complete)
     : base("Merge Study", true, context)
 {
     _updateDestination = updateDestination;
     _commands          = commands;
     _complete          = complete;
 }
Ejemplo n.º 3
0
        public void Initialize(ReconcileStudyProcessorContext context, bool complete)
        {
            Platform.CheckForNullReference(context, "context");
            Context = context;

            DiscardImagesCommand discard = new DiscardImagesCommand(context);

            AddCommand(discard);

            if (complete)
            {
                AddCleanupCommands();
            }
        }
        public void Initialize(ReconcileStudyProcessorContext context, bool complete)
        {
            Platform.CheckForNullReference(context, "context");
            Context = context;

            ProcessAsIsCommand command = new ProcessAsIsCommand(Context, complete);

            AddCommand(command);

            if (complete)
            {
                AddCleanupCommands();
            }
        }
Ejemplo n.º 5
0
		public void Initialize(ReconcileStudyProcessorContext context, bool complete)
		{
			Platform.CheckForNullReference(context, "context");
			Context = context;

			ProcessAsIsCommand command = new ProcessAsIsCommand(Context, complete);

			AddCommand(command);

            if (complete)
            {
                AddCleanupCommands();
            }
		}
Ejemplo n.º 6
0
		public void Initialize(ReconcileStudyProcessorContext context, bool complete)
		{
			Platform.CheckForNullReference(context, "context");
            Context = context;

			DiscardImagesCommand discard = new DiscardImagesCommand(context);

			AddCommand(discard);

            if (complete)
            {
                AddCleanupCommands();
            }
            
		}
Ejemplo n.º 7
0
 private void InitializeContext()
 {
     Platform.CheckForNullReference(StorageLocation, "StorageLocation");
     _context = new ReconcileStudyProcessorContext
     {
         WorkQueueItem             = WorkQueueItem,
         WorkQueueItemStudyStorage = StorageLocation,
         Partition = ServerPartition,
         ReconcileWorkQueueData = _reconcileQueueData,
         WorkQueueUidList       = WorkQueueUidList,
         History = WorkQueueItem.StudyHistoryKey != null
                                         ? StudyHistory.Load(WorkQueueItem.StudyHistoryKey)
                                         : null
     };
 }
		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();
			}
		}
Ejemplo n.º 9
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();
            }
        }
Ejemplo n.º 10
0
		/// <summary>
		/// Creates an instance of <see cref="ProcessAsIsCommand"/>
		/// </summary>
		public ProcessAsIsCommand(ReconcileStudyProcessorContext context, bool complete)
			: base("Process As-is Command", true, context)
		{
			_complete = complete;
		}
Ejemplo n.º 11
0
 /// <summary>
 /// Create an instance of <see cref="CreateStudyCommand"/>
 /// </summary>
 public CreateStudyCommand(ReconcileStudyProcessorContext context, List <BaseImageLevelUpdateCommand> commands, bool complete)
     : base("Create Study", true, context)
 {
     _commands = commands;
     _complete = complete;
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Creates an instance of <see cref="ProcessAsIsCommand"/>
 /// </summary>
 public ProcessAsIsCommand(ReconcileStudyProcessorContext context, bool complete)
     : base("Process As-is Command", true, context)
 {
     _complete = complete;
 }
Ejemplo n.º 13
0
		public DiscardImagesCommand(ReconcileStudyProcessorContext context)
			: base("Discard image", false, context)
		{
		}
Ejemplo n.º 14
0
 public DiscardImagesCommand(ReconcileStudyProcessorContext context)
     : base("Discard image", false, context)
 {
 }