1 implementation of PublishAsync
Aspire.Hosting (1)
Eventing\DistributedApplicationEventing.cs (1)
24
public async Task
PublishAsync
<T>(T @event, EventDispatchBehavior dispatchBehavior, CancellationToken cancellationToken = default) where T : IDistributedApplicationEvent
4 references to PublishAsync
Aspire.Hosting.Tests (4)
Eventing\DistributedApplicationBuilderEventingTests.cs (4)
37
var pendingPublish = builder.Eventing.
PublishAsync
(new DummyEvent(), EventDispatchBehavior.BlockingSequential);
70
var pendingPublish = builder.Eventing.
PublishAsync
(new DummyEvent(), EventDispatchBehavior.BlockingConcurrent);
102
await builder.Eventing.
PublishAsync
(new DummyEvent(), EventDispatchBehavior.NonBlockingConcurrent).DefaultTimeout();
137
await builder.Eventing.
PublishAsync
(new DummyEvent(), EventDispatchBehavior.NonBlockingSequential).DefaultTimeout();