136 instantiations of BeforeStartEvent
Aspire.Hosting (1)
Aspire.Hosting.Azure.Tests (58)
AzureEnvironmentResourceExtensionsTests.cs (52)
973await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1023await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1058await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1105await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1217await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1492await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1550await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1611await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1673await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1729await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1801await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1862await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1921await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
1977await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2015await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2082await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2185await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2257await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2336await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2403await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2481await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2542await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2603await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2682await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2759await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2847await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2904await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
2956await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3020await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3094await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3149await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3209await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3253await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3325await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3392await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3451await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3517await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3581await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3646await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
3977await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4018await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4065await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4122await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4159await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4227await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4307await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4386await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4437await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4484await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4530await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
4597await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
5112await 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.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)
521var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
542var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
566var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
588var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
611var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
647var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
671var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
701var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
722var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
742var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
763var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
784var 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();
479await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout();
562await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout();
634await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None);
718await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None);
787await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None);
854await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None);
899await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None);
928() => 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));
1474await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
1496await Assert.ThrowsAsync<IOException>(async () => await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)));
Aspire.Hosting.Yarp.Tests (2)
86 references to BeforeStartEvent
Aspire.Hosting (34)
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.Tests (25)
ContainerRegistryResourceTests.cs (12)
521var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
542var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
566var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
588var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
611var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
647var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
671var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
701var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
722var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
742var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
763var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
784var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
Aspire.Hosting.Yarp.Tests (2)
Aspire.Playground.Tests (2)
CustomResources.AppHost (2)
HealthChecksSandbox.AppHost (2)
Stress.AppHost (2)