Class ClientNetworkApplicationBuilderExtensions
Adds the shared client-network feature middleware to an ASP.NET Core pipeline.
Inherited Members
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.Middleware.ClientNetwork
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public static class ClientNetworkApplicationBuilderExtensions
Methods
| Edit this page View SourceUseClientNetworkFeature(IApplicationBuilder)
Ensures that IClientNetworkFeature is populated once for requests passing through this pipeline.
Declaration
public static IApplicationBuilder UseClientNetworkFeature(this IApplicationBuilder app)
Parameters
| Type | Name | Description |
|---|---|---|
| IApplicationBuilder | app |
Returns
| Type | Description |
|---|---|
| IApplicationBuilder |
Remarks
Place this before middleware such as Forwarded Headers that rewrites
HttpContext.Connection.RemoteIpAddress when the feature must capture the actual remote peer.