Delen via


HttpContextFeaturesExtensions.ReassignProxyRequest Method

Definition

Overloads

ReassignProxyRequest(HttpContext, ClusterState)

Replaces the assigned cluster and destinations in IReverseProxyFeature with the new ClusterState, causing the request to be sent to the new cluster instead.

ReassignProxyRequest(HttpContext, RouteModel, ClusterState)

Replaces the assigned route, cluster, and destinations in IReverseProxyFeature with the new RouteModel and new ClusterState, causing the request to be sent using the new route to the new cluster.

ReassignProxyRequest(HttpContext, ClusterState)

Source:
HttpContextFeaturesExtensions.cs
Source:
HttpContextFeaturesExtensions.cs

Replaces the assigned cluster and destinations in IReverseProxyFeature with the new ClusterState, causing the request to be sent to the new cluster instead.

public static void ReassignProxyRequest (this Microsoft.AspNetCore.Http.HttpContext context, Yarp.ReverseProxy.Model.ClusterState cluster);
static member ReassignProxyRequest : Microsoft.AspNetCore.Http.HttpContext * Yarp.ReverseProxy.Model.ClusterState -> unit
<Extension()>
Public Sub ReassignProxyRequest (context As HttpContext, cluster As ClusterState)

Parameters

context
HttpContext
cluster
ClusterState

Applies to

ReassignProxyRequest(HttpContext, RouteModel, ClusterState)

Source:
HttpContextFeaturesExtensions.cs
Source:
HttpContextFeaturesExtensions.cs

Replaces the assigned route, cluster, and destinations in IReverseProxyFeature with the new RouteModel and new ClusterState, causing the request to be sent using the new route to the new cluster.

public static void ReassignProxyRequest (this Microsoft.AspNetCore.Http.HttpContext context, Yarp.ReverseProxy.Model.RouteModel route, Yarp.ReverseProxy.Model.ClusterState cluster);
static member ReassignProxyRequest : Microsoft.AspNetCore.Http.HttpContext * Yarp.ReverseProxy.Model.RouteModel * Yarp.ReverseProxy.Model.ClusterState -> unit
<Extension()>
Public Sub ReassignProxyRequest (context As HttpContext, route As RouteModel, cluster As ClusterState)

Parameters

context
HttpContext
route
RouteModel
cluster
ClusterState

Applies to