Skip to content
Docs Try Aspire

BeforeResourceStartedEvent Constructors

Class Constructors 1 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)
{
// ...
}
}
resource IResource The resource that is being created.
services IServiceProvider The IServiceProvider for the app host.
Resources that are created by orchestrators may not yet be ready to handle requests.