1 implementation of PublishAsync
Aspire.Hosting (1)
Eventing\DistributedApplicationEventing.cs (1)
17
public Task
PublishAsync
<T>(T @event, CancellationToken cancellationToken = default) where T : IDistributedApplicationEvent
8 references to PublishAsync
Aspire.Hosting (2)
Eventing\DistributedApplicationEventing.cs (2)
15
/// <inheritdoc cref="IDistributedApplicationEventing.
PublishAsync
{T}(T, CancellationToken)" />
22
/// <inheritdoc cref="IDistributedApplicationEventing.
PublishAsync
{T}(T, CancellationToken)" />
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
243
await builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
284
builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.PostgreSQL.Tests (2)
AddPostgresTests.cs (2)
468
await builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
516
await builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.Redis.Tests (2)
AddRedisTests.cs (2)
216
await builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
240
await builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new (app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));