共用方式為


BeforeResourceStartedEvent(IResource, IServiceProvider) Constructor

Definition

This event is raised by orchestrators before they have started a new resource.

public BeforeResourceStartedEvent (Aspire.Hosting.ApplicationModel.IResource resource, IServiceProvider services);
new Aspire.Hosting.ApplicationModel.BeforeResourceStartedEvent : Aspire.Hosting.ApplicationModel.IResource * IServiceProvider -> Aspire.Hosting.ApplicationModel.BeforeResourceStartedEvent
Public Sub New (resource As IResource, services As IServiceProvider)

Parameters

resource
IResource

The resource that is being created.

services
IServiceProvider

The IServiceProvider for the app host.

Remarks

Resources that are created by orchestrators may not yet be ready to handle requests.

Applies to