7 references to AddLifecycleHook
Aspire.Hosting.Tests (7)
Cli\TestingCollectorTests.cs (1)
79
builder.Services.
AddLifecycleHook
(services => new CallbackLifecycleHook((_, _) => ConfigureTestAsync(services.GetRequiredService<ResourceNotificationService>())));
DistributedApplicationTests.cs (6)
65
testProgram.AppBuilder.Services.
AddLifecycleHook
((sp) =>
97
testProgram.AppBuilder.Services.
AddLifecycleHook
((sp) =>
109
testProgram.AppBuilder.Services.
AddLifecycleHook
((sp) =>
143
testProgram.AppBuilder.Services.
AddLifecycleHook
(_ =>
774
testProgram.AppBuilder.Services.
AddLifecycleHook
((sp) =>
819
testProgram.AppBuilder.Services.
AddLifecycleHook
(sp => new CheckAllocatedEndpointsLifecycleHook(tcs));