InitializeResourceEvent
Class net10.0
This event is raised by orchestrators to signal to resources that they should initialize themselves.
namespace Aspire.Hosting.ApplicationModel;
public class InitializeResourceEvent : Aspire.Hosting.Eventing.IDistributedApplicationEvent, Aspire.Hosting.Eventing.IDistributedApplicationResourceEvent{ // ...} 6 members
Remarks
Section titled Remarks Custom resources can subscribe to this event to perform initialization tasks, including starting background tasks that manage the resource's lifecycle.
Constructors1
Section titled ConstructorsProperties5
Section titled PropertiesEventingget The
IDistributedApplicationEventing service for the app host. LoggergetILogger An instance of
Logging.ILogger that can be used to log messages for the resource. Notificationsget The
ResourceNotificationService for the app host. Resourceget Resource associated with this event.
ServicesgetIServiceProvider The
IServiceProvider for the app host.