1 implementation of Subscribe
Aspire.Hosting (1)
Eventing\DistributedApplicationEventing.cs (1)
77public DistributedApplicationEventSubscription Subscribe<T>(Func<T, CancellationToken, Task> callback) where T : IDistributedApplicationEvent
25 references to Subscribe
Aspire.Cli.Tests (1)
Hosting\CliOrphanDetectorTests.cs (1)
108builder.Eventing.Subscribe<AfterResourcesCreatedEvent>((e, ct) => {
Aspire.Hosting (3)
Eventing\DistributedApplicationEventing.cs (2)
76/// <inheritdoc cref="IDistributedApplicationEventing.Subscribe{T}(Func{T, CancellationToken, Task})" /> 105/// <inheritdoc cref="IDistributedApplicationEventing.Subscribe{T}(Func{T, CancellationToken, Task})" />
PublisherDistributedApplicationBuilderExtensions.cs (1)
31builder.Eventing.Subscribe<PublisherAdvertisementEvent>((e, ct) => {
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
231builder.Eventing.Subscribe<AfterEndpointsAllocatedEvent>((e, ct) =>
Aspire.Hosting.Tests (20)
Backchannel\AppHostBackchannelTests.cs (5)
26builder.Eventing.Subscribe<BackchannelReadyEvent>((e, ct) => { 32builder.Eventing.Subscribe<BackchannelConnectedEvent>((e, ct) => { 62builder.Eventing.Subscribe<BackchannelReadyEvent>((e, ct) => { 104builder.Eventing.Subscribe<BackchannelReadyEvent>((e, ct) => { 149builder.Eventing.Subscribe<BackchannelReadyEvent>((e, ct) => {
DistributedApplicationTests.cs (1)
500events.Subscribe<BeforeResourceStartedEvent>(async (e, ct) =>
Eventing\DistributedApplicationBuilderEventingTests.cs (12)
24builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 31builder.Eventing.Subscribe<DummyEvent>((@event, ct) => 56builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 63builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 88builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 95builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 121builder.Eventing.Subscribe<DummyEvent>(async (@event, ct) => 130builder.Eventing.Subscribe<DummyEvent>((@event, ct) => 209builder.Eventing.Subscribe<BeforeResourceStartedEvent>((e, ct) => 234builder.Eventing.Subscribe<BeforeStartEvent>((e, ct) => 241builder.Eventing.Subscribe<AfterEndpointsAllocatedEvent>((e, ct) => 248builder.Eventing.Subscribe<AfterResourcesCreatedEvent>((e, ct) =>
OperationModesTests.cs (1)
27builder.Eventing.Subscribe<AfterResourcesCreatedEvent>((e, ct) => {
WithUrlsTests.cs (1)
56builder.Eventing.Subscribe<AfterEndpointsAllocatedEvent>((e, ct) =>