다음을 통해 공유


YarpResourceExtensions Class

Definition

Provides extension methods for adding YARP resources to the application model.

public static class YarpResourceExtensions
type YarpResourceExtensions = class
Public Module YarpResourceExtensions
Inheritance
YarpResourceExtensions

Methods

AddYarp(IDistributedApplicationBuilder, String)

Adds a YARP container to the application model.

WithConfiguration(IResourceBuilder<YarpResource>, Action<IYarpConfigurationBuilder>)

Configure the YARP resource.

WithHostPort(IResourceBuilder<YarpResource>, Nullable<Int32>)

Configures the host port that the YARP resource is exposed on instead of using randomly assigned port.

Applies to