Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

InitializeResourceEvent

Handle
📦 Aspire.Hosting v17.0.0

This event is raised by orchestrators to signal to resources that they should initialize themselves.

type InitializeResourceEvent interface {
DistributedApplicationEvent
DistributedApplicationResourceEvent
}

Properties

propertyEventingDistributedApplicationEventingget
The IDistributedApplicationEventing service for the AppHost.
Eventing() DistributedApplicationEventing
propertyLoggerLoggerget
An instance of ILogger that can be used to log messages for the resource.
Logger() Logger
propertyNotificationsResourceNotificationServiceget
The ResourceNotificationService for the AppHost.
Notifications() ResourceNotificationService
propertyResourceResourceget
Gets the Resource property
Resource() Resource
propertyServicesServiceProviderget
The IServiceProvider for the AppHost.
Services() ServiceProvider