8 instantiations of AfterEndpointsAllocatedEvent
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
242
await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(
new
(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
274
builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(
new
(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (3)
381
await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(
new
(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
472
await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(
new
(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
533
await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(
new
(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.Redis.Tests (3)
AddRedisTests.cs (3)
331
await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(
new
(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
355
await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(
new
(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
376
await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(
new
(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
20 references to AfterEndpointsAllocatedEvent
Aspire.Hosting (5)
ApplicationModel\AfterEndpointsAllocatedEvent.cs (1)
20
/// Subscribe to the <see cref="
AfterEndpointsAllocatedEvent
"/> event and resolve the distributed application model.
Orchestrator\ApplicationOrchestrator.cs (3)
54
_eventing.Subscribe<
AfterEndpointsAllocatedEvent
>(ProcessResourcesWithoutLifetime);
93
var
afterEndpointsAllocatedEvent = new AfterEndpointsAllocatedEvent(_serviceProvider, _model);
153
private Task ProcessResourcesWithoutLifetime(
AfterEndpointsAllocatedEvent
@event, CancellationToken cancellationToken)
ResourceBuilderExtensions.cs (1)
991
builder.ApplicationBuilder.Eventing.Subscribe<
AfterEndpointsAllocatedEvent
>((@event, ct) =>
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
112
builder.ApplicationBuilder.Eventing.Subscribe<
AfterEndpointsAllocatedEvent
>((e, ct) =>
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
113
builder.ApplicationBuilder.Eventing.Subscribe<
AfterEndpointsAllocatedEvent
>((e, ct) =>
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
242
await builder.Eventing.PublishAsync<
AfterEndpointsAllocatedEvent
>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
274
builder.Eventing.PublishAsync<
AfterEndpointsAllocatedEvent
>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
163
builder.ApplicationBuilder.Eventing.Subscribe<
AfterEndpointsAllocatedEvent
>((e, ct) =>
295
builder.ApplicationBuilder.Eventing.Subscribe<
AfterEndpointsAllocatedEvent
>((e, ct) =>
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (3)
381
await builder.Eventing.PublishAsync<
AfterEndpointsAllocatedEvent
>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
472
await builder.Eventing.PublishAsync<
AfterEndpointsAllocatedEvent
>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
533
await builder.Eventing.PublishAsync<
AfterEndpointsAllocatedEvent
>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
167
builder.ApplicationBuilder.Eventing.Subscribe<
AfterEndpointsAllocatedEvent
>((e, ct) =>
241
builder.ApplicationBuilder.Eventing.Subscribe<
AfterEndpointsAllocatedEvent
>((e, ct) =>
Aspire.Hosting.Redis.Tests (3)
AddRedisTests.cs (3)
331
await builder.Eventing.PublishAsync<
AfterEndpointsAllocatedEvent
>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
355
await builder.Eventing.PublishAsync<
AfterEndpointsAllocatedEvent
>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
376
await builder.Eventing.PublishAsync<
AfterEndpointsAllocatedEvent
>(new (app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.Tests (1)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
241
builder.Eventing.Subscribe<
AfterEndpointsAllocatedEvent
>((e, ct) =>