Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddYarp

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (DistributedApplicationBuilder) AddYarp(name string) YarpResource

Signature

methodAddYarpbuilder
Adds a YARP container to the application model.
AddYarp(name string) YarpResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
YarpResource

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder