1 implementation of Subscribe
Aspire.Hosting (1)
Eventing\DistributedApplicationEventing.cs (1)
77
public 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)
168
builder.ApplicationBuilder.Eventing.
Subscribe
<AfterEndpointsAllocatedEvent>((e, ct) =>
Aspire.Hosting.Tests (12)
Eventing\DistributedApplicationBuilderEventingTests.cs (12)
24
builder.Eventing.
Subscribe
<DummyEvent>(async (@event, ct) =>
31
builder.Eventing.
Subscribe
<DummyEvent>((@event, ct) =>
56
builder.Eventing.
Subscribe
<DummyEvent>(async (@event, ct) =>
63
builder.Eventing.
Subscribe
<DummyEvent>(async (@event, ct) =>
88
builder.Eventing.
Subscribe
<DummyEvent>(async (@event, ct) =>
95
builder.Eventing.
Subscribe
<DummyEvent>(async (@event, ct) =>
121
builder.Eventing.
Subscribe
<DummyEvent>(async (@event, ct) =>
130
builder.Eventing.
Subscribe
<DummyEvent>((@event, ct) =>
209
builder.Eventing.
Subscribe
<BeforeResourceStartedEvent>((e, ct) =>
234
builder.Eventing.
Subscribe
<BeforeStartEvent>((e, ct) =>
241
builder.Eventing.
Subscribe
<AfterEndpointsAllocatedEvent>((e, ct) =>
248
builder.Eventing.
Subscribe
<AfterResourcesCreatedEvent>((e, ct) =>