Class AppBuilderSessionAffinityExtensions
Extensions for adding proxy middleware to the pipeline.
Inheritance
System.Object
AppBuilderSessionAffinityExtensions
Namespace: Microsoft.AspNetCore.Builder
Assembly: Yarp.ReverseProxy.dll
Syntax
public static class AppBuilderSessionAffinityExtensions : object
Methods
| Improve this Doc View SourceUseSessionAffinity(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.
Declaration
public static IReverseProxyApplicationBuilder UseSessionAffinity(this IReverseProxyApplicationBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IReverseProxyApplicationBuilder | builder |
Returns
Type | Description |
---|---|
IReverseProxyApplicationBuilder |