14 implementations of ApplicationStarted
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
155public CancellationToken ApplicationStarted { get; }
Aspire.Hosting.Tests (3)
Dashboard\DashboardLifecycleHookTests.cs (1)
184public CancellationToken ApplicationStarted { get; }
ResourceNotificationTests.cs (1)
402public CancellationToken ApplicationStarted { get; }
Utils\TestHostApplicationLifetime.cs (1)
10public CancellationToken ApplicationStarted { get; }
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
12public CancellationToken ApplicationStarted
Microsoft.AspNetCore.Hosting (1)
Internal\ApplicationLifetime.cs (1)
34public CancellationToken ApplicationStarted => _startedSource.Token;
Microsoft.AspNetCore.Http.Connections.Tests (2)
ApplicationLifetime.cs (2)
16public CancellationToken ApplicationStarted => _startedSource.Token; 35public CancellationToken ApplicationStarted => CancellationToken.None;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
12public CancellationToken ApplicationStarted
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaServicesExtensionsTests.cs (1)
88public CancellationToken ApplicationStarted => CancellationToken.None;
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
MockHostApplicationLifetime.cs (1)
16public CancellationToken ApplicationStarted { get; }
Microsoft.Extensions.Hosting (1)
Internal\ApplicationLifetime.cs (1)
39public CancellationToken ApplicationStarted => _startedSource.Token;
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
12public CancellationToken ApplicationStarted
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\LifetimeNotImplemented.cs (1)
12public CancellationToken ApplicationStarted
20 references to ApplicationStarted
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
289_app.Lifetime.ApplicationStarted.Register(() =>
Aspire.Hosting.Testing (1)
DistributedApplicationHostingTestingExtensions.cs (1)
108if (!lifetime.ApplicationStarted.IsCancellationRequested)
InteropWebsite (1)
Startup.cs (1)
38applicationLifetime.ApplicationStarted.Register(() =>
Microsoft.AspNetCore.Hosting (1)
GenericHost\GenericWebHostApplicationLifetime.cs (1)
17public CancellationToken ApplicationStarted => _applicationLifetime.ApplicationStarted;
Microsoft.AspNetCore.Hosting.Tests (7)
WebHostTests.cs (7)
174lifetime.ApplicationStarted.WaitHandle.WaitOne(); 323lifetime.ApplicationStarted.Register(() => 414Assert.False(applicationLifetime.ApplicationStarted.IsCancellationRequested); 418Assert.True(applicationLifetime.ApplicationStarted.IsCancellationRequested); 435var started = RegisterCallbacksThatThrow(applicationLifetime.ApplicationStarted); 444Assert.True(applicationLifetime.ApplicationStarted.IsCancellationRequested); 685var started = RegisterCallbacksThatThrow(applicationLifetime.ApplicationStarted);
Microsoft.AspNetCore.Hosting.TestSites (1)
StartupShutdown.cs (1)
16lifetime.ApplicationStarted.Register(() =>
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionManager.cs (1)
39appLifetime.ApplicationStarted.Register(Start);
Microsoft.AspNetCore.Mvc.Testing (1)
DeferredHostBuilder.cs (1)
152using var reg2 = _host.Services.GetRequiredService<IHostApplicationLifetime>().ApplicationStarted.UnsafeRegister(_ => _hostStartedTcs.TrySetResult(), null);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
ApplicationLifecycleHealthCheck.cs (1)
46bool isStarted = _appLifetime.ApplicationStarted.IsCancellationRequested;
Microsoft.Extensions.Hosting (1)
Internal\ConsoleLifetime.cs (1)
80_applicationStartedRegistration = ApplicationLifetime.ApplicationStarted.Register(state =>
Microsoft.Extensions.Hosting.Systemd (1)
SystemdLifetime.cs (1)
75_applicationStartedRegistration = ApplicationLifetime.ApplicationStarted.Register(state =>
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetime.cs (1)
78ApplicationLifetime.ApplicationStarted.Register(() =>
Stress.ApiService (2)
Program.cs (2)
23app.Lifetime.ApplicationStarted.Register(ConsoleStresser.Stress); 25app.Lifetime.ApplicationStarted.Register(() =>