Skip to content
DocsTry Aspire
DocsTry

ResourceReadyEvent Constructors

ClassConstructors1 member
Event that is raised when a resource initially transitions to a ready state.
Constructor(IResource, IServiceProvider)Section titled Constructor(IResource, IServiceProvider)
Event that is raised when a resource initially transitions to a ready state.
public class ResourceReadyEvent
{
public ResourceReadyEvent(
IResource resource,
IServiceProvider services)
{
// ...
}
}
resourceIResourceThe resource that is in a ready state.
servicesIServiceProviderThe service provider for the app host.
This event is only fired the first time a resource transitions to a ready state after starting.