Share via


DistributedApplicationModelExtensions.GetComputeResources Method

Definition

Returns the compute resources from the DistributedApplicationModel. Compute resources are those that are either containers or project resources, and are not marked to be ignored by the manifest publishing callback annotation.

public static System.Collections.Generic.IEnumerable<Aspire.Hosting.ApplicationModel.IResource> GetComputeResources(this Aspire.Hosting.ApplicationModel.DistributedApplicationModel model);
static member GetComputeResources : Aspire.Hosting.ApplicationModel.DistributedApplicationModel -> seq<Aspire.Hosting.ApplicationModel.IResource>
<Extension()>
Public Iterator Function GetComputeResources (model As DistributedApplicationModel) As IEnumerable(Of IResource)

Parameters

model
DistributedApplicationModel

The distributed application model to extract compute resources from.

Returns

An enumerable of compute IResource in the model.

Applies to