Share via


ReverseProxyApplicationBuilder Class

Definition

public class ReverseProxyApplicationBuilder : Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Builder.IReverseProxyApplicationBuilder
type ReverseProxyApplicationBuilder = class
    interface IReverseProxyApplicationBuilder
    interface IApplicationBuilder
Public Class ReverseProxyApplicationBuilder
Implements IApplicationBuilder, IReverseProxyApplicationBuilder
Inheritance
ReverseProxyApplicationBuilder
Implements

Constructors

ReverseProxyApplicationBuilder(IApplicationBuilder)

Properties

ApplicationServices
Properties
ServerFeatures

Methods

Build()
New()
Use(Func<RequestDelegate,RequestDelegate>)

Extension Methods

UseHttpSysDelegation(IReverseProxyApplicationBuilder)

Adds middleware to check if the selected destination should use Http.sys delegation. If so, the request is delegated to the destination queue instead of being proxied over HTTP. This should be placed after load balancing and passive health checks.

UsePassiveHealthChecks(IReverseProxyApplicationBuilder)

Passively checks destinations health by watching for successes and failures in client request proxying.

UseLoadBalancing(IReverseProxyApplicationBuilder)

Load balances across the available endpoints.

UseSessionAffinity(IReverseProxyApplicationBuilder)

Checks if a request has an established affinity relationship and if the associated destination is available. This should be placed before load balancing and other destination selection components. Requests without an affinity relationship will be processed normally and have the affinity relationship established by a later component.

UseWebSocketsTelemetry(IApplicationBuilder)

Adds a Yarp.ReverseProxy.WebSocketsTelemetry.WebSocketsTelemetryMiddleware to the request pipeline. Must be added before WebSocketMiddleware.

Applies to