DistributedApplicationModelExtensions.GetComputeResources Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The distributed application model to extract compute resources from.
Returns
An enumerable of compute IResource in the model.