Class RequestTrafficLoggingApplicationBuilderExtensions
Provides pipeline activation for WebLib request traffic logging.
Inherited Members
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.RequestTrafficLogging
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public static class RequestTrafficLoggingApplicationBuilderExtensions
Methods
| Edit this page View SourceUseRequestTrafficLogging(IApplicationBuilder)
Adds ASP.NET Core HTTP capture followed by the WebLib request-completion layer.
Declaration
public static IApplicationBuilder UseRequestTrafficLogging(this IApplicationBuilder app)
Parameters
| Type | Name | Description |
|---|---|---|
| IApplicationBuilder | app | The application builder. |
Returns
| Type | Description |
|---|---|
| IApplicationBuilder | The original application builder. |
Remarks
Register this before exception-handling middleware when handled exceptions should be classified as
Faulted with their final handled response status. The method is idempotent per linear application pipeline.
Services must first be registered with AddRequestTrafficLogging().
This method activates ASP.NET Core UseHttpLogging() internally; consumers should not add a second
UseHttpLogging() middleware for the same linear pipeline, because doing so can duplicate framework
HTTP-logging processing around the single A4 traffic record.