11 references to _lifetime
Aspire.Hosting.Native.Core (11)
Runtime\ResourceWorkload.cs (11)
264using var allocation = new TimeProviderCancellation(options.WorkloadStartupTimeout, options.TimeProvider, _lifetime.Token); 271using var values = new TimeProviderCancellation(options.WorkloadStartupTimeout, options.TimeProvider, _lifetime.Token); 274await waitForDependencies(_lifetime.Token).ConfigureAwait(false); 277using var startup = new TimeProviderCancellation(options.WorkloadStartupTimeout, options.TimeProvider, _lifetime.Token); 298foreach (var line in await lease.ReadLogsAsync(_lifetime.Token).ConfigureAwait(false)) 302var status = await lease.ReadStatusAsync(_lifetime.Token).ConfigureAwait(false); 308await Task.Delay(options.ObservationInterval, options.TimeProvider, _lifetime.Token).ConfigureAwait(false); 312catch (OperationCanceledException) when (_lifetime.IsCancellationRequested) 314_ready.TrySetCanceled(_lifetime.Token); 367_lifetime.Dispose(); 379_lifetime.Cancel();