Ejemplo n.º 1
0
        internal override async Task GetSeriesImageImpAsync(GetSeriesImageRequest request, CancellationToken ct)
        {
            await _getSeriesImageSemaphore.WaitAsync(ct);

            try
            {
                if (ct.IsCancellationRequested)
                {
                    return;
                }

                await DicomSeriesImageService.GetSeriesImageAsync(request, _settings, ct);
            }
            finally
            {
                _getSeriesImageSemaphore.Release();
            }
        }
Ejemplo n.º 2
0
 public static async Task GetSeriesImageAsync(GetSeriesImageRequest request, DicomSearchServiceSettings settings, CancellationToken ct)
 {
     var service = new DicomSeriesImageService(request.RaiseImageGot, settings, ct);
     await service.Go(request.Series, ct);
 }