11 references to _shutdown
Aspire.Tray.Tests (11)
src\Aspire.Tray\Common\TrayController.cs (11)
281await foreach (var snapshot in _client.WatchAsync(_shutdown.Token).ConfigureAwait(false)) 285if (!_shutdown.IsCancellationRequested && State.Discovery is not (DiscoveryState.Incompatible or DiscoveryState.LimitExceeded)) 291catch (OperationCanceledException) when (_shutdown.IsCancellationRequested) 372result = await _client.StopAsync(id, _shutdown.Token).ConfigureAwait(false); 374catch (OperationCanceledException) when (_shutdown.IsCancellationRequested) 412command = _client.StartAsync(path, _shutdown.Token); 416catch (OperationCanceledException) when (_shutdown.IsCancellationRequested) 447reconciliation = Task.Delay(StartReconciliationTimeout, _timeProvider, _shutdown.Token); 466catch (OperationCanceledException) when (_shutdown.IsCancellationRequested) 711await _shutdown.CancelAsync().ConfigureAwait(false); 716_shutdown.Dispose();