Skip to content
DocsTry Aspire
DocsTry

BeforeResourceStartedEvent Constructors

ClassConstructors1 member
This event is raised by orchestrators before they have started a new resource.
Constructor(IResource, IServiceProvider)Section titled Constructor(IResource, IServiceProvider)
This event is raised by orchestrators before they have started a new resource.
public class BeforeResourceStartedEvent
{
public BeforeResourceStartedEvent(
IResource resource,
IServiceProvider services)
{
// ...
}
}
resourceIResourceThe resource that is being created.
servicesIServiceProviderThe IServiceProvider for the app host.
Resources that are created by orchestrators may not yet be ready to handle requests.