1 interface inheriting from IDistributedApplicationEvent
Aspire.Hosting (1)
Eventing\IDistributedApplicationEvent.cs (1)
18
public interface IDistributedApplicationResourceEvent :
IDistributedApplicationEvent
1 implementation of IDistributedApplicationEvent
Aspire.Hosting.Tests (1)
Eventing\DistributedApplicationBuilderEventingTests.cs (1)
268
public class DummyEvent :
IDistributedApplicationEvent
11 references to IDistributedApplicationEvent
Aspire.Hosting (11)
ApplicationModel\AfterEndpointsAllocatedEvent.cs (1)
29
public class AfterEndpointsAllocatedEvent(IServiceProvider services, DistributedApplicationModel model) :
IDistributedApplicationEvent
ApplicationModel\AfterResourcesCreatedEvent.cs (1)
29
public class AfterResourcesCreatedEvent(IServiceProvider services, DistributedApplicationModel model) :
IDistributedApplicationEvent
ApplicationModel\BeforeStartEvent.cs (1)
29
public class BeforeStartEvent(IServiceProvider services, DistributedApplicationModel model) :
IDistributedApplicationEvent
Eventing\DistributedApplicationEventing.cs (3)
17
public Task PublishAsync<T>(T @event, CancellationToken cancellationToken = default) where T :
IDistributedApplicationEvent
24
public async Task PublishAsync<T>(T @event, EventDispatchBehavior dispatchBehavior, CancellationToken cancellationToken = default) where T :
IDistributedApplicationEvent
77
public DistributedApplicationEventSubscription Subscribe<T>(Func<T, CancellationToken, Task> callback) where T :
IDistributedApplicationEvent
Eventing\DistributedApplicationEventSubscription.cs (2)
12
public class DistributedApplicationEventSubscription(Func<
IDistributedApplicationEvent
, CancellationToken, Task> callback)
17
public Func<
IDistributedApplicationEvent
, CancellationToken, Task> Callback { get; } = callback;
Eventing\IDistributedApplicationEventing.cs (3)
19
DistributedApplicationEventSubscription Subscribe<T>(Func<T, CancellationToken, Task> callback) where T :
IDistributedApplicationEvent
;
44
Task PublishAsync<T>(T @event, CancellationToken cancellationToken = default) where T :
IDistributedApplicationEvent
;
55
Task PublishAsync<T>(T @event, EventDispatchBehavior dispatchBehavior, CancellationToken cancellationToken = default) where T :
IDistributedApplicationEvent
;