2 implementations of Eventing
Aspire.Hosting.Testing (2)
DistributedApplicationTestingBuilder.cs (2)
219public IDistributedApplicationEventing Eventing => innerBuilder.Eventing; 356public IDistributedApplicationEventing Eventing => _innerBuilder.Eventing;
27 references to Eventing
Aspire.Cli.Tests (1)
Hosting\CliOrphanDetectorTests.cs (1)
106builder.Eventing.Subscribe<AfterResourcesCreatedEvent>((e, ct) => {
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
233builder.Eventing.Subscribe<ConnectionStringAvailableEvent>(qdrantResource, (e, ct) =>
Aspire.Hosting.Tests (25)
Backchannel\AppHostBackchannelTests.cs (4)
25builder.Eventing.Subscribe<BackchannelReadyEvent>((e, ct) => { 31builder.Eventing.Subscribe<BackchannelConnectedEvent>((e, ct) => { 61builder.Eventing.Subscribe<BackchannelReadyEvent>((e, ct) => { 104builder.Eventing.Subscribe<BackchannelReadyEvent>((e, ct) => {
Eventing\DistributedApplicationBuilderEventingTests.cs (17)
24builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 31builder.Eventing.Subscribe<DummyEvent>((@event, ct) => 37var pendingPublish = builder.Eventing.PublishAsync(new DummyEvent(), EventDispatchBehavior.BlockingSequential); 56builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 63builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 70var pendingPublish = builder.Eventing.PublishAsync(new DummyEvent(), EventDispatchBehavior.BlockingConcurrent); 88builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 95builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 102await builder.Eventing.PublishAsync(new DummyEvent(), EventDispatchBehavior.NonBlockingConcurrent).DefaultTimeout(); 121builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 130builder.Eventing.Subscribe<DummyEvent>((@event, ct) => 137await builder.Eventing.PublishAsync(new DummyEvent(), EventDispatchBehavior.NonBlockingSequential).DefaultTimeout(); 170Assert.Equal(builder.Eventing, eventing); 208builder.Eventing.Subscribe<BeforeResourceStartedEvent>((e, ct) => 233builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) => 241builder.Eventing.Subscribe<AfterEndpointsAllocatedEvent>((e, ct) => 249builder.Eventing.Subscribe<AfterResourcesCreatedEvent>((e, ct) =>
OperationModesTests.cs (4)
24builder.Eventing.Subscribe<AfterResourcesCreatedEvent>((e, ct) => { 53builder.Eventing.Subscribe<AfterResourcesCreatedEvent>((e, ct) => { 82builder.Eventing.Subscribe<AfterResourcesCreatedEvent>((e, ct) => { 113builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) => {