7 writes to CleanupTimeout
Aspire.Hosting.Native.Core.Tests (7)
DcpWorkloadCleanupTests.cs (6)
57
var options = new NativeServerOptions {
CleanupTimeout
= TimeSpan.FromSeconds(10) };
129
var options = new NativeServerOptions { TimeProvider = clock,
CleanupTimeout
= TimeSpan.FromSeconds(2) };
170
var options = new NativeServerOptions {
CleanupTimeout
= TimeSpan.FromSeconds(10) };
195
var options = new NativeServerOptions {
CleanupTimeout
= TimeSpan.FromSeconds(10) };
219
var options = new NativeServerOptions {
CleanupTimeout
= TimeSpan.FromSeconds(10) };
267
var options = new NativeServerOptions {
CleanupTimeout
= TimeSpan.FromSeconds(10) };
NativeProviderLifecycleTests.cs (1)
20
var options = new NativeServerOptions {
CleanupTimeout
= TimeSpan.FromSeconds(10) };
13 references to CleanupTimeout
Aspire.Hosting.Native.Core.Tests (2)
DcpWorkloadCleanupTests.cs (1)
155
clock.Advance(options.
CleanupTimeout
- TimeSpan.FromTicks(1));
NativeServerOptionsTests.cs (1)
22
Assert.Equal(TimeSpan.FromSeconds(90), options.
CleanupTimeout
);
Aspire.Hosting.Native.Server (11)
Dcp\DcpApiClient.cs (3)
229
using var cleanup = new CancellationTokenSource(_options.
CleanupTimeout
, _options.TimeProvider);
257
using var forcedExit = new CancellationTokenSource(_options.
CleanupTimeout
, _options.TimeProvider);
262
await _output.WaitAsync(_options.
CleanupTimeout
, _options.TimeProvider).ConfigureAwait(false);
Dcp\DcpWorkloadExecutor.cs (1)
287
using var cleanup = new CancellationTokenSource(options.
CleanupTimeout
, options.TimeProvider);
NativeDiagnosticPump.cs (1)
44
await _consumer.WaitAsync(_options.
CleanupTimeout
, _options.TimeProvider).ConfigureAwait(false);
NativeServerHostedService.cs (4)
30
await lifetime.RequestStopAsync(settings.Options.
CleanupTimeout
, settings.Options.TimeProvider,
215
using var cleanup = new CancellationTokenSource(options.
CleanupTimeout
, options.TimeProvider);
254
using var cleanup = new CancellationTokenSource(options.
CleanupTimeout
, options.TimeProvider);
271
using var cleanup = new CancellationTokenSource(options.
CleanupTimeout
, options.TimeProvider);
NativeServerOptions.cs (1)
58
foreach (var duration in new[] { ControllerStartupTimeout, ControllerRequestTimeout, ControllerLogReadTimeout,
CleanupTimeout
,
Program.cs (1)
36
builder.Services.Configure<HostOptions>(options => options.ShutdownTimeout = settings.Options.
CleanupTimeout
);