1 implementation of Subscribe
Aspire.Hosting (1)
Eventing\DistributedApplicationEventing.cs (1)
77public DistributedApplicationEventSubscription Subscribe<T>(Func<T, CancellationToken, Task> callback) where T : IDistributedApplicationEvent
15 references to Subscribe
Aspire.Hosting (2)
Eventing\DistributedApplicationEventing.cs (2)
76/// <inheritdoc cref="IDistributedApplicationEventing.Subscribe{T}(Func{T, CancellationToken, Task})" /> 105/// <inheritdoc cref="IDistributedApplicationEventing.Subscribe{T}(Func{T, CancellationToken, Task})" />
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
168builder.ApplicationBuilder.Eventing.Subscribe<AfterEndpointsAllocatedEvent>((e, ct) =>
Aspire.Hosting.Tests (12)
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) =>