YarpServiceExtensions.AddYarp(IDistributedApplicationBuilder, String) 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.
Adds a YARP container to the application model.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Yarp.YarpResource> AddYarp(this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddYarp : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Yarp.YarpResource>
<Extension()>
Public Function AddYarp (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of YarpResource)
Parameters
- name
- String
The name of the resource. This name will be used as the connection string name when referenced in a dependency.
Returns
A reference to the IResourceBuilder<T>.