DistributedApplicationEventingExtensions
Classstaticnet10.0
Provides extension methods for publishing resource allocation and subscribing to application events.
namespace Aspire.Hosting;
public static class DistributedApplicationEventingExtensions{ // ...}11 members
Methods11
Section titled MethodsT Subscribes a callback to the
AfterPublishEvent event within the AppHost. T Subscribes a callback to the
BeforePublishEvent event within the AppHost. OnBeforeResourceStarted(IResourceBuilder<T>, Func<T, BeforeResourceStartedEvent, CancellationToken, Task>) extensionats ignored Subscribes a callback to the
BeforeResourceStartedEvent event within the AppHost. T Subscribes a callback to the
BeforeStartEvent event within the AppHost. OnConnectionStringAvailable(IResourceBuilder<T>, Func<T, ConnectionStringAvailableEvent, CancellationToken, Task>) extensionats ignored Subscribes a callback to the
ConnectionStringAvailableEvent event for builder. OnInitializeResource(IResourceBuilder<T>, Func<T, InitializeResourceEvent, CancellationToken, Task>) extensionats ignored Subscribes a callback to the
InitializeResourceEvent event for builder. OnResourceEndpointsAllocated(IResourceBuilder<T>, Func<T, ResourceEndpointsAllocatedEvent, CancellationToken, Task>) extensionats ignored Subscribes a callback to the
ResourceEndpointsAllocatedEvent event for builder. OnResourceReady(IResourceBuilder<T>, Func<T, ResourceReadyEvent, CancellationToken, Task>) extensionats ignored Subscribes a callback to the
ResourceReadyEvent event for builder. OnResourceStopped(IResourceBuilder<T>, Func<T, ResourceStoppedEvent, CancellationToken, Task>) extensionats ignored Subscribes a callback to the
ResourceStoppedEvent event for builder. PublishResourceEndpointsAllocatedAsync(IDistributedApplicationEventing, ResourceEndpointsAllocatedEvent, CancellationToken) extensionats ignoredTask Completes a resource's endpoint allocation before notifying subscribers.
PublishResourceEndpointsAllocatedAsync(IDistributedApplicationEventing, ResourceEndpointsAllocatedEvent, EventDispatchBehavior, CancellationToken) extensionats ignoredTask Completes a resource's endpoint allocation before dispatching its notification with the specified behavior.