Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DistributedApplicationModel

Handle
📦 Aspire.Hosting v17.0.0

Represents a distributed application.

type DistributedApplicationModel interface{}

Methods

Finds a resource by name.
FindResourceByName(name string) Resource
namestringThe resource name.
Resource

The matching resource, or null when not found.

Returns a handle; failures surface later via Err().

Gets all resources in the distributed application model.
GetResources() ([]Resource, error)
([]Resource, error)

The resources in the model.

Returns ([]Resource, error).