Class AppBuilderSessionAffinityExtensions
- Namespace
- Microsoft.AspNetCore.Builder
- Assembly
- Yarp.ReverseProxy.dll
Extensions for adding proxy middleware to the pipeline.
public static class AppBuilderSessionAffinityExtensions
- Inheritance
-
AppBuilderSessionAffinityExtensions
- Inherited Members
Methods
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.
public static IReverseProxyApplicationBuilder UseSessionAffinity(this IReverseProxyApplicationBuilder builder)
Parameters
builder
IReverseProxyApplicationBuilder