1 instantiation of BeforeStartEvent
Aspire.Hosting (1)
DistributedApplication.cs (1)
466
var beforeStartEvent = new
BeforeStartEvent
(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>());
19 references to BeforeStartEvent
Aspire.Hosting (13)
ApplicationModel\BeforeStartEvent.cs (1)
20
/// Subscribe to the <see cref="
BeforeStartEvent
"/> event and resolve the distributed application model.
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (4)
12
public static Task InitializeDcpAnnotations(
BeforeStartEvent
beforeStartEvent, CancellationToken _)
41
public static Task ExcludeDashboardFromManifestAsync(
BeforeStartEvent
beforeStartEvent, CancellationToken _)
52
public static Task MutateHttp2TransportAsync(
BeforeStartEvent
beforeStartEvent, CancellationToken _)
67
public static Task UpdateContainerRegistryAsync(
BeforeStartEvent
@event, DistributedApplicationOptions options)
DistributedApplication.cs (1)
466
var
beforeStartEvent = new BeforeStartEvent(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>());
DistributedApplicationBuilder.cs (5)
235
Eventing.Subscribe<
BeforeStartEvent
>(ExecEventingHandlers.InitializeExecResources);
385
Eventing.Subscribe<
BeforeStartEvent
>(BuiltInDistributedApplicationEventSubscriptionHandlers.InitializeDcpAnnotations);
389
Eventing.Subscribe<
BeforeStartEvent
>(BuiltInDistributedApplicationEventSubscriptionHandlers.MutateHttp2TransportAsync);
398
Eventing.Subscribe<
BeforeStartEvent
>(BuiltInDistributedApplicationEventSubscriptionHandlers.ExcludeDashboardFromManifestAsync);
403
Eventing.Subscribe<
BeforeStartEvent
>((e, ct) => BuiltInDistributedApplicationEventSubscriptionHandlers.UpdateContainerRegistryAsync(e, options));
Exec\ExecEventingHandlers.cs (1)
11
public static Task InitializeExecResources(
BeforeStartEvent
beforeStartEvent, CancellationToken _)
ResourceBuilderExtensions.cs (1)
1789
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeStartEvent
>((e, ct) =>
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
400
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeStartEvent
>((data, _) =>
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
63
builder.Eventing.Subscribe<
BeforeStartEvent
>((data, token) =>
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresExtensions.cs (1)
300
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeStartEvent
>((data, token) =>
Aspire.Hosting.Azure.Redis (1)
AzureRedisExtensions.cs (1)
206
builder.ApplicationBuilder.Eventing.Subscribe<
BeforeStartEvent
>((data, token) =>
Aspire.Hosting.Tests (2)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
232
builder.Eventing.Subscribe<
BeforeStartEvent
>((e, ct) =>
OperationModesTests.cs (1)
112
builder.Eventing.Subscribe<
BeforeStartEvent
>((e, ct) => {