Пример #1
0
        private static async Task Wado(Message message, CancellationToken token)
        {
            (string studyInstanceUid, string seriesInstanceUid, string sopInstanceUid) = ParseMessageForUids(message);

            if (sopInstanceUid != null)
            {
                await client.RetrieveInstanceAsync(studyInstanceUid, seriesInstanceUid, sopInstanceUid, cancellationToken : token);
            }
            else if (seriesInstanceUid != null)
            {
                await client.RetrieveSeriesAsync(studyInstanceUid, seriesInstanceUid, cancellationToken : token);
            }
            else
            {
                await client.RetrieveStudyAsync(studyInstanceUid, cancellationToken : token);
            }

            return;
        }
Пример #2
0
        private async Task VerifySopInstanceRemoval(string studyInstanceUid, string seriesInstanceUid, string sopInstanceUid)
        {
            DicomWebException exception = await Assert.ThrowsAsync <DicomWebException>(() => _client.RetrieveInstanceAsync(studyInstanceUid, seriesInstanceUid, sopInstanceUid));

            Assert.Equal(HttpStatusCode.NotFound, exception.StatusCode);
        }
Пример #3
0
        private static void RetrieveInstance(string studyUid, string seriesUid, string instanceUid)
        {
            DicomWebResponse <IReadOnlyList <DicomFile> > response = client.RetrieveInstanceAsync(studyUid, seriesUid, instanceUid).Result;

            return;
        }