49 references to EventDispatchBehavior
Aspire.Hosting (16)
Backchannel\AuxiliaryBackchannelService.cs (1)
133
EventDispatchBehavior
.NonBlockingConcurrent,
Backchannel\BackchannelService.cs (2)
70
EventDispatchBehavior
.NonBlockingConcurrent,
95
EventDispatchBehavior
.NonBlockingConcurrent,
DistributedApplicationEventingExtensions.cs (2)
31
eventing.PublishResourceEndpointsAllocatedAsync(@event,
EventDispatchBehavior
.BlockingSequential, cancellationToken);
47
public static Task PublishResourceEndpointsAllocatedAsync(this IDistributedApplicationEventing eventing, ResourceEndpointsAllocatedEvent @event,
EventDispatchBehavior
dispatchBehavior, CancellationToken cancellationToken)
Eventing\DistributedApplicationEventing.cs (7)
20
return PublishAsync(@event,
EventDispatchBehavior
.BlockingSequential, cancellationToken);
25
public async Task PublishAsync<T>(T @event,
EventDispatchBehavior
dispatchBehavior, CancellationToken cancellationToken = default) where T : IDistributedApplicationEvent
29
if (dispatchBehavior ==
EventDispatchBehavior
.BlockingConcurrent || dispatchBehavior ==
EventDispatchBehavior
.NonBlockingConcurrent)
38
if (dispatchBehavior ==
EventDispatchBehavior
.NonBlockingConcurrent)
54
if (dispatchBehavior ==
EventDispatchBehavior
.NonBlockingSequential)
80
EventDispatchBehavior
dispatchBehavior,
Eventing\IDistributedApplicationEventing.cs (1)
56
Task PublishAsync<T>(T @event,
EventDispatchBehavior
dispatchBehavior, CancellationToken cancellationToken = default) where T : IDistributedApplicationEvent;
Orchestrator\ApplicationOrchestrator.cs (3)
202
PublishEndpointsAllocatedAsync(context.Events, _eventing,
EventDispatchBehavior
.BlockingSequential, context.CancellationToken);
207
EventDispatchBehavior
dispatchBehavior,
797
await _eventing.PublishAsync(initializeEvent,
EventDispatchBehavior
.NonBlockingConcurrent, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
226
await eventing.PublishAsync<BeforeResourceStartedEvent>(new(portResource, e.Services),
EventDispatchBehavior
.NonBlockingConcurrent, ct).ConfigureAwait(false);
850
EventDispatchBehavior
.NonBlockingSequential, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Kafka.Tests (1)
AddKafkaTests.cs (1)
296
EventDispatchBehavior
.BlockingSequential);
Aspire.Hosting.MySql.Tests (1)
AddMySqlTests.cs (1)
425
EventDispatchBehavior
.BlockingSequential);
Aspire.Hosting.Tests (29)
Dcp\DcpExecutorTests.cs (1)
5000
context.Events, eventing, Hosting.Eventing.
EventDispatchBehavior
.BlockingSequential, context.CancellationToken));
Eventing\DistributedApplicationBuilderEventingTests.cs (5)
38
await builder.Eventing.PublishAsync(new DummyEvent(),
EventDispatchBehavior
.NonBlockingConcurrent, cts.Token).DefaultTimeout();
72
var pendingPublish = builder.Eventing.PublishAsync(new DummyEvent(),
EventDispatchBehavior
.BlockingSequential);
105
var pendingPublish = builder.Eventing.PublishAsync(new DummyEvent(),
EventDispatchBehavior
.BlockingConcurrent);
137
await builder.Eventing.PublishAsync(new DummyEvent(),
EventDispatchBehavior
.NonBlockingConcurrent).DefaultTimeout();
172
await builder.Eventing.PublishAsync(new DummyEvent(),
EventDispatchBehavior
.NonBlockingSequential).DefaultTimeout();
Orchestrator\ApplicationOrchestratorTests.cs (21)
51
builder.Eventing,
EventDispatchBehavior
.BlockingSequential, cts.Token).DefaultTimeout();
85
builder.Eventing,
EventDispatchBehavior
.BlockingSequential, default).DefaultTimeout();
121
builder.Eventing,
EventDispatchBehavior
.BlockingSequential, cts.Token).DefaultTimeout();
128
builder.Eventing,
EventDispatchBehavior
.BlockingSequential, cts.Token).DefaultTimeout();
151
builder.Eventing,
EventDispatchBehavior
.BlockingSequential, cts.Token).DefaultTimeout();
155
builder.Eventing,
EventDispatchBehavior
.BlockingSequential, cts.Token).DefaultTimeout();
221
[InlineData(
EventDispatchBehavior
.BlockingSequential)]
222
[InlineData(
EventDispatchBehavior
.BlockingConcurrent)]
223
[InlineData(
EventDispatchBehavior
.NonBlockingSequential)]
224
[InlineData(
EventDispatchBehavior
.NonBlockingConcurrent)]
225
public async Task BrowserUrlIsFinalizedBeforeAllocationEventHandlers(
EventDispatchBehavior
dispatchBehavior)
317
await orchestrator.PublishEndpointsAllocatedAsync([new(frontend.Resource, app.Services)], builder.Eventing,
EventDispatchBehavior
.BlockingSequential, default);
359
await orchestrator.PublishEndpointsAllocatedAsync([new(frontend.Resource, app.Services)], builder.Eventing,
EventDispatchBehavior
.BlockingSequential, default);
360
await orchestrator.PublishEndpointsAllocatedAsync([new(manager.Resource, app.Services)], builder.Eventing,
EventDispatchBehavior
.BlockingSequential, default);
387
var publish = orchestrator.PublishEndpointsAllocatedAsync([new(frontend.Resource, app.Services)], builder.Eventing,
EventDispatchBehavior
.BlockingSequential, default);
423
await orchestrator.PublishEndpointsAllocatedAsync([new(frontend.Resource, app.Services)], builder.Eventing,
EventDispatchBehavior
.BlockingSequential, default);
445
await orchestrator.PublishEndpointsAllocatedAsync([new(frontend.Resource, app.Services)], builder.Eventing,
EventDispatchBehavior
.BlockingSequential, default).DefaultTimeout();
471
await orchestrator.PublishEndpointsAllocatedAsync([new(frontend.Resource, app.Services)], builder.Eventing,
EventDispatchBehavior
.BlockingSequential, default);
492
await orchestrator.PublishEndpointsAllocatedAsync([new(frontend.Resource, app.Services)], builder.Eventing,
EventDispatchBehavior
.BlockingSequential, default);
520
await orchestrator.PublishEndpointsAllocatedAsync([new(frontend.Resource, app.Services)], builder.Eventing,
EventDispatchBehavior
.BlockingSequential, default);
524
await orchestrator.PublishEndpointsAllocatedAsync([new(frontend.Resource, app.Services)], builder.Eventing,
EventDispatchBehavior
.BlockingSequential, default);
WithUrlsTests.cs (2)
88
await e.Eventing.PublishResourceEndpointsAllocatedAsync(new ResourceEndpointsAllocatedEvent(custom, e.Services),
EventDispatchBehavior
.BlockingConcurrent, ct);
91
await e.Eventing.PublishAsync(new BeforeResourceStartedEvent(custom, e.Services),
EventDispatchBehavior
.BlockingSequential, ct);