140 instantiations of BeforeStartEvent
Aspire.Hosting (1)
DistributedApplication.cs (1)
654var 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)
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);
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)
597await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectBuildCoordinatorTests.cs (1)
5221new BeforeStartEvent(app.Services, model),
Aspire.Hosting.EntityFrameworkCore.Tests (2)
EFBuildReadinessTests.cs (2)
75new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()), token); 109new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()), token);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
929await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
Aspire.Hosting.Go.Tests (4)
GoRunDebuggingTests.cs (4)
113await builder.Eventing.PublishAsync(new BeforeStartEvent( 248await builder.Eventing.PublishAsync(new BeforeStartEvent( 442await builder.Eventing.PublishAsync(new BeforeStartEvent( 489await builder.Eventing.PublishAsync(new BeforeStartEvent(
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)
2937await eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel), CancellationToken.None);
Aspire.Hosting.Redis.Tests (6)
AddRedisTests.cs (6)
306await eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 332await eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 999var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 1037await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel)); 1072var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 1100var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
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));
Dcp\DcpExecutorTests.cs (5)
7314await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 7354await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 11844await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 11915await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 11961await 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)
325var 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)); 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)
AddYarpTests.cs (2)
443var beforeStartEvent = new BeforeStartEvent(app.Services, model); 468var beforeStartEvent = new BeforeStartEvent(app.Services, model);
96 references to BeforeStartEvent
Aspire.Hosting (37)
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) 901eventing.Subscribe<BeforeStartEvent>(OnBeforeStartAsync);
DistributedApplication.cs (2)
654var beforeStartEvent = new BeforeStartEvent(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>()); 655using (var publishEventActivity = ProfilingTelemetry.StartAppHostPublishEvent(configuration, typeof(BeforeStartEvent)))
DistributedApplicationBuilder.cs (5)
635Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.InitializeDcpAnnotations); 636Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.WarnPersistentContainersWithoutUserSecrets); 640Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.MutateHttp2TransportAsync); 689Eventing.Subscribe<BeforeStartEvent>(BuiltInDistributedApplicationEventSubscriptionHandlers.ExcludeDashboardFromManifestAsync); 694Eventing.Subscribe<BeforeStartEvent>((e, ct) => BuiltInDistributedApplicationEventSubscriptionHandlers.UpdateContainerRegistryAsync(e, options));
DistributedApplicationEventingExtensions.cs (2)
57/// Subscribes a callback to the <see cref="BeforeStartEvent"/> event within the AppHost. 64public static T OnBeforeStart<T>(this T builder, Func<BeforeStartEvent, CancellationToken, Task> callback)
DistributedApplicationLifecycle.cs (1)
57/// raising <see cref="ApplicationModel.BeforeStartEvent"/> so the messages are visible even if a before-start
IInteractionService.cs (1)
25/// <see cref="ApplicationModel.BeforeStartEvent"/> subscribers, because the dashboard and CLI that respond
InteractionService.cs (1)
739throw new InvalidOperationException($"{nameof(InteractionService)} is not available because the dashboard is not enabled, because the app host has not started yet (for example, during {nameof(BeforeStartEvent)}), or because this command is running in non-interactive CLI mode.");
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)
4719/// 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)
589builder.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)
3173builder.Eventing.Subscribe<BeforeStartEvent>((@event, _) => 3197builder.Eventing.Subscribe<BeforeStartEvent>((@event, _) => 3225builder.Eventing.Subscribe<BeforeStartEvent>((@event, _) => 3422builder.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)
999var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 1072var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 1100var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
Aspire.Hosting.Testing.Tests (1)
DashboardTestingBuilderTests.cs (1)
121builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) =>
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);
DistributedApplicationTests.cs (5)
197builder.Eventing.Subscribe<BeforeStartEvent>((e, _) => 521testProgram.AppBuilder.Eventing.Subscribe<BeforeStartEvent>((_, cancellationToken) => 541testProgram.AppBuilder.Eventing.Subscribe<BeforeStartEvent>((evt, cancellationToken) => 562testProgram.AppBuilder.Eventing.Subscribe<BeforeStartEvent>((_, cancellationToken) => 582testProgram.AppBuilder.Eventing.Subscribe<BeforeStartEvent>((evt, cancellationToken) =>
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
268builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) =>
InteractionServiceTests.cs (3)
203Assert.Contains(nameof(BeforeStartEvent), ex.Message); 217builder.Eventing.Subscribe<BeforeStartEvent>(async (e, ct) => 255builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) => throw new InvalidOperationException("Before-start failed."));
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)
294builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) => 325var 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 (3)
AppHost.cs (1)
19builder.Eventing.Subscribe<BeforeStartEvent>(async (_, cancellationToken) =>
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 (3)
AppHost.cs (1)
170builder.Eventing.Subscribe<BeforeStartEvent>(async (e, ct) =>
TestResource.cs (2)
154public Task OnBeforeStartAsync(BeforeStartEvent @event, CancellationToken cancellationToken = default) 201eventing.Subscribe<BeforeStartEvent>(OnBeforeStartAsync);