Share via


Aspire.Hosting.Lifecycle Namespace

Classes

EventingSubscriberServiceCollectionExtensions

Provides extension methods for adding event subscribers to the IServiceCollection.

LifecycleHookServiceCollectionExtensions

Provides extension methods for adding lifecycle hooks to the IServiceCollection.

Interfaces

IDistributedApplicationEventingSubscriber

Defines an interface for services that want to subscribe to events from IDistributedApplicationEventing. This allows a service to subscribe to BeforeStartEvent before the application actually starts.

IDistributedApplicationLifecycleHook

Defines an interface for hooks that are executed during the lifecycle of a distributed application.