/// <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; }
/// <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; }
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(); } }
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(); } }
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(); } }
/// <summary> /// Creates an instance of <see cref="ProcessAsIsCommand"/> /// </summary> public ProcessAsIsCommand(ReconcileStudyProcessorContext context, bool complete) : base("Process As-is Command", true, context) { _complete = complete; }
/// <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; }
public DiscardImagesCommand(ReconcileStudyProcessorContext context) : base("Discard image", false, context) { }