11 references to _shutdown
Aspire.Tray.Tests (11)
src\Aspire.Tray\Common\TrayController.cs (11)
301await foreach (var snapshot in _client.WatchAsync(_shutdown.Token).ConfigureAwait(false)) 305if (!_shutdown.IsCancellationRequested && State.Discovery is not (DiscoveryState.Incompatible or DiscoveryState.LimitExceeded)) 311catch (OperationCanceledException) when (_shutdown.IsCancellationRequested) 392result = await _client.StopAsync(id, _shutdown.Token).ConfigureAwait(false); 394catch (OperationCanceledException) when (_shutdown.IsCancellationRequested) 432command = _client.StartAsync(path, _shutdown.Token); 436catch (OperationCanceledException) when (_shutdown.IsCancellationRequested) 467reconciliation = Task.Delay(StartReconciliationTimeout, _timeProvider, _shutdown.Token); 486catch (OperationCanceledException) when (_shutdown.IsCancellationRequested) 727await _shutdown.CancelAsync().ConfigureAwait(false); 732_shutdown.Dispose();