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(); } }
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); }