Пример #1
0
        /// <summary>
        /// Process a specific DICOM file which may be related to a <see cref="WorkItem"/> request.
        /// </summary>
        /// <remarks>
        /// <para>
        /// On success and if <see cref="uid"/> is set, the <see cref="WorkItemUid"/> field is marked as complete.  If processing fails,
        /// the FailureCount field is incremented for the <see cref="WorkItemUid"/>.
        /// </para>
        /// </remarks>
        /// <param name="studyXml">The <see cref="StudyXml"/> file to update with information from the file.</param>
        /// <param name="file">The file to process.</param>
        /// <param name="uid">An optional WorkQueueUid associated with the entry, that will be deleted upon success or failed on failure.</param>
        /// <exception cref="ApplicationException"/>
        /// <exception cref="DicomDataException"/>
        public void ProcessFile(DicomFile file, StudyXml studyXml, WorkItemUid uid)
        {
            Platform.CheckForNullReference(file, "file");
            Platform.CheckForNullReference(studyXml, "studyXml");
            var processFile = new ProcessorFile(file, uid);

            InsertBatch(new List <ProcessorFile> {
                processFile
            }, studyXml);
        }
Пример #2
0
 /// <summary>
 /// Process a specific DICOM file which may be related to a <see cref="WorkItem"/> request.
 /// </summary>
 /// <remarks>
 /// <para>
 /// On success and if <see cref="uid"/> is set, the <see cref="WorkItemUid"/> field is marked as complete.  If processing fails, 
 /// the FailureCount field is incremented for the <see cref="WorkItemUid"/>.
 /// </para>
 /// </remarks>
 /// <param name="studyXml">The <see cref="StudyXml"/> file to update with information from the file.</param>
 /// <param name="file">The file to process.</param>
 /// <param name="uid">An optional WorkQueueUid associated with the entry, that will be deleted upon success or failed on failure.</param>
 /// <exception cref="ApplicationException"/>
 /// <exception cref="DicomDataException"/>
 public void ProcessFile(DicomFile file, StudyXml studyXml, WorkItemUid uid)
 {
     Platform.CheckForNullReference(file, "file");
     Platform.CheckForNullReference(studyXml, "studyXml");
     var processFile = new ProcessorFile(file, uid);
     InsertBatch(new List<ProcessorFile> {processFile}, studyXml);
 }