Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

InitializeResourceEvent

Classnet10.0
📦 Aspire.Hosting v13.5.4
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
{
// ...
}
Custom resources can subscribe to this event to perform initialization tasks, including starting background tasks that manage the resource's lifecycle.
View all constructors
View all properties