共用方式為


ResourceReadyEvent(IResource, IServiceProvider) Constructor

Definition

Event that is raised when a resource initially transitions to a ready state.

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

Parameters

resource
IResource

The resource that is in a ready state.

services
IServiceProvider

The service provider for the app host.

Remarks

This event is only fired once per resource the first time it transitions to a ready state.

Applies to