2 implementations of ApplicationStarted
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostApplicationLifetime.cs (1)
17
public CancellationToken
ApplicationStarted
=> _applicationLifetime.ApplicationStarted;
Internal\ApplicationLifetime.cs (1)
34
public CancellationToken
ApplicationStarted
=> _startedSource.Token;
6 references to ApplicationStarted
Microsoft.AspNetCore.Hosting.Tests (6)
WebHostTests.cs (6)
175
Assert.True(lifetime2.
ApplicationStarted
.IsCancellationRequested);
415
Assert.False(applicationLifetime2.
ApplicationStarted
.IsCancellationRequested);
419
Assert.True(applicationLifetime2.
ApplicationStarted
.IsCancellationRequested);
439
var started2 = RegisterCallbacksThatThrow(applicationLifetime2.
ApplicationStarted
);
445
Assert.True(applicationLifetime2.
ApplicationStarted
.IsCancellationRequested);
688
var started2 = RegisterCallbacksThatThrow(applicationLifetime2.
ApplicationStarted
);