136 instantiations of BeforeStartEvent
Aspire.Hosting (1)
DistributedApplication.cs (1)
643var beforeStartEvent = new BeforeStartEvent(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>());
Aspire.Hosting.Azure.Tests (58)
AzureCosmosDBExtensionsTests.cs (4)
806var beforeStartEvent = new BeforeStartEvent(app.Services, model); 838var beforeStartEvent = new BeforeStartEvent(app.Services, model); 867var beforeStartEvent = new BeforeStartEvent(app.Services, model); 897var beforeStartEvent = new BeforeStartEvent(app.Services, model);
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);
AzureRunAsEmulatorModeTests.cs (2)
66await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 84await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
Aspire.Hosting.Blazor.Tests (1)
BlazorHostedExtensionsTests.cs (1)
616await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectBuildCoordinatorTests.cs (1)
4051new BeforeStartEvent(app.Services, model),
Aspire.Hosting.EntityFrameworkCore.Tests (2)
EFBuildReadinessTests.cs (2)
72new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()), token); 104new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()), token);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
928await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
Aspire.Hosting.JavaScript.Tests (1)
RequiredCommandTests.cs (1)
233await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
Aspire.Hosting.Keycloak.Tests (1)
KeycloakResourceBuilderTests.cs (1)
80var beforeStartEvent = new BeforeStartEvent(app.Services, model);
Aspire.Hosting.Maui.Tests (1)
MauiPlatformExtensionsTests.cs (1)
995await appBuilder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()), CancellationToken.None).DefaultTimeout();
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));
ReplicaSet\AddMongoDBReplicaSetTests.cs (1)
224await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
SingleMemberReplicaSetTests.cs (1)
125await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
2592await eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel), CancellationToken.None);
Aspire.Hosting.Redis.Tests (6)
AddRedisTests.cs (6)
304await eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 330await eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 937var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 975await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel)); 1010var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 1038var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
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));
Dcp\DcpExecutorTests.cs (5)
6629await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 6669await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 11154await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 11225await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 11271await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel));
PersistentContainerWarningTests.cs (3)
33var beforeStartEvent = new BeforeStartEvent(serviceProvider, model); 57var beforeStartEvent = new BeforeStartEvent(serviceProvider, model); 79var beforeStartEvent = new BeforeStartEvent(serviceProvider, model);
Terminals\ResourceTerminalCatalogTests.cs (1)
265await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
WithOtlpExporterTests.cs (1)
323var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
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)
AddYarpTests.cs (2)
443var beforeStartEvent = new BeforeStartEvent(app.Services, model); 468var beforeStartEvent = new BeforeStartEvent(app.Services, model);
86 references to BeforeStartEvent
Aspire.Hosting (34)
ApplicationModel\BeforeStartEvent.cs (1)
20/// Subscribe to the <see cref="BeforeStartEvent"/> event and resolve the distributed application model.
ApplicationModel\TerminalAnnotation.cs (4)
24/// <see cref="Initialize"/> from a <see cref="BeforeStartEvent"/> handler so the 43/// parent's replica count at <see cref="BeforeStartEvent"/> time). Empty until 50/// Production code initializes during <see cref="BeforeStartEvent"/>; tests that 57/// <see cref="BeforeStartEvent"/> subscriber installed by
Ats\BuilderExports.cs (2)
204Func<BeforeStartEvent, Task> callback) 209return builder.Eventing.Subscribe<BeforeStartEvent>(async (@event, ct) =>
Ats\EventingExports.cs (2)
168public static DistributedApplicationEventSubscription OnBeforeStart(this EventingSubscriberRegistrationContext context, Func<BeforeStartEvent, Task> callback) 173return context.Eventing.Subscribe<BeforeStartEvent>((@event, _) => callback(@event));
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (5)
14public static Task InitializeDcpAnnotations(BeforeStartEvent beforeStartEvent, CancellationToken _) 43public static Task ExcludeDashboardFromManifestAsync(BeforeStartEvent beforeStartEvent, CancellationToken _) 54public static Task MutateHttp2TransportAsync(BeforeStartEvent beforeStartEvent, CancellationToken _) 69public static Task UpdateContainerRegistryAsync(BeforeStartEvent @event, DistributedApplicationOptions options) 84public static Task WarnPersistentContainersWithoutUserSecrets(BeforeStartEvent beforeStartEvent, CancellationToken _)
Dashboard\DashboardEventHandlers.cs (2)
53public Task OnBeforeStartAsync(BeforeStartEvent @event, CancellationToken cancellationToken) 876eventing.Subscribe<BeforeStartEvent>(OnBeforeStartAsync);
DistributedApplication.cs (2)
643var beforeStartEvent = new BeforeStartEvent(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>()); 644using (var publishEventActivity = ProfilingTelemetry.StartAppHostPublishEvent(configuration, typeof(BeforeStartEvent)))
DistributedApplicationBuilder.cs (5)
627Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.InitializeDcpAnnotations); 628Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.WarnPersistentContainersWithoutUserSecrets); 632Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.MutateHttp2TransportAsync); 680Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.ExcludeDashboardFromManifestAsync); 685Eventing.Subscribe<BeforeStartEvent>((e, ct) => BuiltInDistributedApplicationEventSubscriptionHandlers.UpdateContainerRegistryAsync(e, options));
DistributedApplicationEventingExtensions.cs (2)
16/// Subscribes a callback to the <see cref="BeforeStartEvent"/> event within the AppHost. 23public static T OnBeforeStart<T>(this T builder, Func<BeforeStartEvent, CancellationToken, Task> callback)
Lifecycle\TerminalHostEventingSubscriber.cs (3)
15/// created earlier in the same <see cref="BeforeStartEvent"/> by the subscription 46eventing.Subscribe<BeforeStartEvent>(ResolveTerminalHostsAsync); 50private Task ResolveTerminalHostsAsync(BeforeStartEvent @event, CancellationToken cancellationToken)
Lifecycle\TerminalHostOrphanCleanupService.cs (1)
61eventing.Subscribe<BeforeStartEvent>((@event, _) =>
ResourceBuilderExtensions.cs (1)
4699/// Subscribes to the <see cref="BeforeStartEvent"/> and invokes the specified callback when an HTTPS certificate
TerminalResourceBuilderExtensions.cs (4)
47/// hosts are materialized during <see cref="BeforeStartEvent"/> after the model is fully built, 113appBuilder.Eventing.Subscribe<BeforeStartEvent>((@event, cancellationToken) => 122/// <see cref="BeforeStartEvent"/> (e.g. from a test) is a no-op once the 126BeforeStartEvent @event,
Aspire.Hosting.Azure (1)
AzureResourcePreparer.cs (1)
24internal Task OnBeforeStartAsync(BeforeStartEvent @event, CancellationToken cancellationToken)
Aspire.Hosting.Azure.Sql (1)
AzureSqlServerResource.cs (1)
586builder.Eventing.Subscribe<BeforeStartEvent>((data, token) =>
Aspire.Hosting.Azure.Tests (4)
AzureCosmosDBExtensionsTests.cs (4)
806var beforeStartEvent = new BeforeStartEvent(app.Services, model); 838var beforeStartEvent = new BeforeStartEvent(app.Services, model); 867var beforeStartEvent = new BeforeStartEvent(app.Services, model); 897var beforeStartEvent = new BeforeStartEvent(app.Services, model);
Aspire.Hosting.Dotnet.Tests (4)
DotnetProjectBuildCoordinatorTests.cs (4)
2174builder.Eventing.Subscribe<BeforeStartEvent>((@event, _) => 2198builder.Eventing.Subscribe<BeforeStartEvent>((@event, _) => 2226builder.Eventing.Subscribe<BeforeStartEvent>((@event, _) => 2423builder.Eventing.Subscribe<BeforeStartEvent>((_, _) =>
Aspire.Hosting.EntityFrameworkCore (2)
EFMigrationResourceBuilderExtensions.cs (2)
40builder.ApplicationBuilder.Eventing.Subscribe<BeforeStartEvent>((@event, ct) => 351builder.ApplicationBuilder.Eventing.Subscribe<BeforeStartEvent>((@event, _) =>
Aspire.Hosting.Keycloak.Tests (1)
KeycloakResourceBuilderTests.cs (1)
80var beforeStartEvent = new BeforeStartEvent(app.Services, model);
Aspire.Hosting.MongoDB (1)
MongoDBBuilderExtensions.cs (1)
345builder.ApplicationBuilder.Eventing.Subscribe<BeforeStartEvent>((@event, ct) =>
Aspire.Hosting.Redis.Tests (3)
AddRedisTests.cs (3)
937var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 1010var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 1038var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
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);
DistributedApplicationTests.cs (4)
447testProgram.AppBuilder.Eventing.Subscribe<BeforeStartEvent>((_, cancellationToken) => 467testProgram.AppBuilder.Eventing.Subscribe<BeforeStartEvent>((evt, cancellationToken) => 488testProgram.AppBuilder.Eventing.Subscribe<BeforeStartEvent>((_, cancellationToken) => 508testProgram.AppBuilder.Eventing.Subscribe<BeforeStartEvent>((evt, cancellationToken) =>
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
236builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) =>
OperationModesTests.cs (1)
113builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) => {
PersistentContainerWarningTests.cs (3)
33var beforeStartEvent = new BeforeStartEvent(serviceProvider, model); 57var beforeStartEvent = new BeforeStartEvent(serviceProvider, model); 79var beforeStartEvent = new BeforeStartEvent(serviceProvider, model);
Terminals\ResourceTerminalCatalogTests.cs (1)
255/// Builds the application and publishes <see cref="BeforeStartEvent"/>, which is the seam where
WithOtlpExporterTests.cs (2)
292builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) => 323var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
WithTerminalTests.cs (1)
1431/// Builds the application, publishes <see cref="BeforeStartEvent"/> (the seam that
Aspire.Hosting.Yarp.Tests (2)
AddYarpTests.cs (2)
443var beforeStartEvent = new BeforeStartEvent(app.Services, model); 468var beforeStartEvent = new BeforeStartEvent(app.Services, model);
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationTestFactory.cs (2)
55public Task OnBeforeStartAsync(BeforeStartEvent @event, CancellationToken cancellationToken = default) 75eventing.Subscribe<BeforeStartEvent>(OnBeforeStartAsync);
CustomResources.AppHost (2)
TestResource.cs (2)
39public Task OnBeforeStartAsync(BeforeStartEvent @event, CancellationToken cancellationToken = default) 87eventing.Subscribe<BeforeStartEvent>(OnBeforeStartAsync);
HealthChecksSandbox.AppHost (2)
AppHost.cs (2)
126public Task OnBeforeStartAsync(BeforeStartEvent @event, CancellationToken cancellationToken) 147eventing.Subscribe<BeforeStartEvent>(OnBeforeStartAsync);
Stress.AppHost (2)
TestResource.cs (2)
154public Task OnBeforeStartAsync(BeforeStartEvent @event, CancellationToken cancellationToken = default) 201eventing.Subscribe<BeforeStartEvent>(OnBeforeStartAsync);