Skip to content
DocsTry Aspire
DocsTry

InitializeResourceEvent

Handle
📦 Aspire.Hosting v13.4.0
interface InitializeResourceEvent
extends IDistributedApplicationEvent,
IDistributedApplicationResourceEvent {
readonly eventing: IDistributedApplicationEventing;
readonly logger: ILogger;
readonly notifications: ResourceNotificationService;
readonly resource: IResource;
readonly services: IServiceProvider;
}

Properties

propertyeventingIDistributedApplicationEventingget
The `IDistributedApplicationEventing` service for the app host.
propertyloggerILoggerget
An instance of `ILogger` that can be used to log messages for the resource.
propertynotificationsResourceNotificationServiceget
The `ResourceNotificationService` for the app host.
propertyresourceIResourceget
Gets the Resource property
propertyservicesIServiceProviderget
The `IServiceProvider` for the app host.