1 implementation of PublishAsync
Aspire.Hosting (1)
Eventing\DistributedApplicationEventing.cs (1)
17
public Task
PublishAsync
<T>(T @event, CancellationToken cancellationToken = default) where T : IDistributedApplicationEvent
25 references to PublishAsync
Aspire.Hosting (10)
DistributedApplication.cs (1)
455
await eventing.
PublishAsync
(beforeStartEvent, cancellationToken).ConfigureAwait(false);
DistributedApplicationRunner.cs (2)
41
await eventing.
PublishAsync
<BeforePublishEvent>(
48
await eventing.
PublishAsync
<AfterPublishEvent>(
Eventing\DistributedApplicationEventing.cs (2)
15
/// <inheritdoc cref="IDistributedApplicationEventing.
PublishAsync
{T}(T, CancellationToken)" />
22
/// <inheritdoc cref="IDistributedApplicationEventing.
PublishAsync
{T}(T, CancellationToken)" />
Health\ResourceHealthCheckService.cs (1)
252
var task = eventing.
PublishAsync
(resourceReadyEvent, cancellationToken);
Orchestrator\ApplicationOrchestrator.cs (4)
98
await _eventing.
PublishAsync
(afterEndpointsAllocatedEvent, context.CancellationToken).ConfigureAwait(false);
167
await _eventing.
PublishAsync
(beforeResourceStartedEvent, context.CancellationToken).ConfigureAwait(false);
319
await _eventing.
PublishAsync
(afterResourcesCreatedEvent, cancellationToken).ConfigureAwait(false);
430
await _eventing.
PublishAsync
(connectionStringAvailableEvent, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (3)
Provisioning\Provisioners\AzureProvisioner.cs (3)
258
await eventing.
PublishAsync
(beforeResourceStartedEvent, cancellationToken).ConfigureAwait(false);
349
await eventing.
PublishAsync
(connectionStringAvailableEvent, cancellationToken).ConfigureAwait(false);
356
await eventing.
PublishAsync
(childConnectionStringAvailableEvent, cancellationToken).ConfigureAwait(false);
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>()));
471
await builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
534
await builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.Redis.Tests (4)
AddRedisTests.cs (4)
303
await builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
493
await builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
517
await builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
538
await builder.Eventing.
PublishAsync
<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
CustomResources.AppHost (3)
TalkingClockResource.cs (3)
45
await eventing.
PublishAsync
(new BeforeResourceStartedEvent(resource, services), token);
46
await eventing.
PublishAsync
(new BeforeResourceStartedEvent(resource.TickHand, services), token);
47
await eventing.
PublishAsync
(new BeforeResourceStartedEvent(resource.TockHand, services), token);