140 instantiations of BeforeStartEvent
Aspire.Hosting (1)
Aspire.Hosting.Azure.Tests (58)
AzureEnvironmentResourceExtensionsTests.cs (52)
998await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1048await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1083await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1130await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1242await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1517await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1575await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1636await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1698await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1754await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1826await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1887await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1946await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2002await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2040await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2107await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2210await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2282await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2361await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2428await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2506await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2567await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2628await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2707await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2784await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2872await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2929await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2981await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3045await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3119await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3174await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3234await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3278await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3350await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3417await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3476await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3542await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3606await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3671await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4002await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4043await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4090await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4147await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4184await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4252await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4332await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4411await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4462await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4509await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4555await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4622await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
5137await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
Aspire.Hosting.Blazor.Tests (1)
Aspire.Hosting.Dotnet.Tests (1)
Aspire.Hosting.EntityFrameworkCore.Tests (2)
Aspire.Hosting.Foundry.Tests (1)
Aspire.Hosting.Go.Tests (4)
Aspire.Hosting.JavaScript.Tests (1)
Aspire.Hosting.Keycloak.Tests (1)
Aspire.Hosting.Maui.Tests (1)
Aspire.Hosting.MongoDB.Tests (12)
AddMongoDBTests.cs (10)
140await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
170await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
469await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
494await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
520await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
541await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
579await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
620await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
640await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
658await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
Aspire.Hosting.Python.Tests (1)
Aspire.Hosting.Redis.Tests (6)
Aspire.Hosting.Tests (48)
ContainerRegistryResourceTests.cs (12)
431var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
558var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
579var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
603var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
625var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
648var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
684var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
708var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
738var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
759var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
779var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
800var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
Dashboard\DashboardEventHandlersTests.cs (13)
52await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout();
102await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout();
195await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout();
215await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout();
275await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout();
540await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout();
623await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout();
695await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None);
779await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None);
848await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None);
915await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None);
960await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None);
989() => hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None));
WithTerminalTests.cs (13)
356await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
411await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
447await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
525await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
615await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
667await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1063await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1079await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1097await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1427await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1449await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1476await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1498await Assert.ThrowsAsync<IOException>(async () => await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)));
Aspire.Hosting.Yarp.Tests (2)
96 references to BeforeStartEvent
Aspire.Hosting (37)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Azure.Tests (4)
Aspire.Hosting.Dotnet.Tests (4)
Aspire.Hosting.EntityFrameworkCore (2)
Aspire.Hosting.Keycloak.Tests (1)
Aspire.Hosting.MongoDB (1)
Aspire.Hosting.Redis.Tests (3)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (29)
ContainerRegistryResourceTests.cs (12)
431var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
558var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
579var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
603var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
625var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
648var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
684var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
708var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
738var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
759var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
779var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
800var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
Aspire.Hosting.Yarp.Tests (2)
Aspire.Playground.Tests (2)
CustomResources.AppHost (3)
HealthChecksSandbox.AppHost (2)
Stress.AppHost (3)