Share via


EnvironmentCallbackContext.Resource Property

Definition

The resource associated with this callback context.

public Aspire.Hosting.ApplicationModel.IResource Resource { get; }
member this.Resource : Aspire.Hosting.ApplicationModel.IResource
Public ReadOnly Property Resource As IResource

Property Value

Exceptions

Thrown when the EnvironmentCallbackContext was created without a specified resource.

Remarks

This will be set to the resource in all cases where .NET Aspire invokes the callback.

Applies to