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)
655await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 705await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 740await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 787await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 899await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1174await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1232await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1293await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1355await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1411await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1483await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1544await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1603await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1659await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1697await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1764await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1867await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1939await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2018await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2085await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2163await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2224await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2285await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2364await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2441await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2529await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2586await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2638await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2702await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2776await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2831await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2891await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2935await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3007await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3074await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3133await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3199await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3263await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3328await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3659await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3700await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3747await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3804await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3841await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3909await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3989await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4068await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4119await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4166await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4212await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4279await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4794await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
AzureRunAsEmulatorModeTests.cs (2)
67await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 85await 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)
875await 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)
996await 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)
126await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
2593await 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)
522var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 543var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 567var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 589var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 612var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 648var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 672var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 702var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 723var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 743var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 764var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 785var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
Dashboard\DashboardEventHandlersTests.cs (13)
51await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout(); 101await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout(); 194await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout(); 214await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout(); 269await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout(); 472await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout(); 555await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None).DefaultTimeout(); 627await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None); 711await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None); 780await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None); 847await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None); 892await hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None); 921() => hook.OnBeforeStartAsync(new BeforeStartEvent(new TestServiceProvider(), model), CancellationToken.None));
Dcp\DcpExecutorTests.cs (5)
6630await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 6670await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 11155await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 11226await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 11272await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel));
PersistentContainerWarningTests.cs (3)
34var beforeStartEvent = new BeforeStartEvent(serviceProvider, model); 58var beforeStartEvent = new BeforeStartEvent(serviceProvider, model); 80var 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)
302await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 357await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 393await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 471await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 561await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 613await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1009await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1025await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1043await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1373await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1395await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1420await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1442await 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)
27/// <see cref="Initialize"/> from a <see cref="BeforeStartEvent"/> handler so the 46/// parent's replica count at <see cref="BeforeStartEvent"/> time). Empty until 53/// Production code initializes during <see cref="BeforeStartEvent"/>; tests that 60/// <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)
16public static Task InitializeDcpAnnotations(BeforeStartEvent beforeStartEvent, CancellationToken _) 45public static Task ExcludeDashboardFromManifestAsync(BeforeStartEvent beforeStartEvent, CancellationToken _) 56public static Task MutateHttp2TransportAsync(BeforeStartEvent beforeStartEvent, CancellationToken _) 71public static Task UpdateContainerRegistryAsync(BeforeStartEvent @event, DistributedApplicationOptions options) 86public static Task WarnPersistentContainersWithoutUserSecrets(BeforeStartEvent beforeStartEvent, CancellationToken _)
Dashboard\DashboardEventHandlers.cs (2)
53public Task OnBeforeStartAsync(BeforeStartEvent @event, CancellationToken cancellationToken) 875eventing.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)
619Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.InitializeDcpAnnotations); 620Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.WarnPersistentContainersWithoutUserSecrets); 624Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.MutateHttp2TransportAsync); 672Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.ExcludeDashboardFromManifestAsync); 677Eventing.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)
4412/// Subscribes to the <see cref="BeforeStartEvent"/> and invokes the specified callback when an HTTPS certificate
TerminalResourceBuilderExtensions.cs (4)
45/// hosts are materialized during <see cref="BeforeStartEvent"/> after the model is fully built, 110appBuilder.Eventing.Subscribe<BeforeStartEvent>((@event, cancellationToken) => 136/// <see cref="BeforeStartEvent"/> (e.g. from a test) is a no-op once the 140BeforeStartEvent @event,
Aspire.Hosting.Azure (1)
AzureResourcePreparer.cs (1)
26internal 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)
41builder.ApplicationBuilder.Eventing.Subscribe<BeforeStartEvent>((@event, ct) => 352builder.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)
346builder.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)
522var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 543var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 567var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 589var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 612var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 648var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 672var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 702var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 723var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 743var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 764var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 785var 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)
114builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) => {
PersistentContainerWarningTests.cs (3)
34var beforeStartEvent = new BeforeStartEvent(serviceProvider, model); 58var beforeStartEvent = new BeforeStartEvent(serviceProvider, model); 80var 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)
1377/// 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);