| NLogRequestPostedBodyMiddleware Class |
ASP.NET Core Middleware that enables ${aspnet-request-posted-body}
Inject the NLogRequestPostBodyMiddlewareOption in the IoC if wanting to override default values for constructor
Inheritance Hierarchy SystemObject
NLog.WebNLogRequestPostedBodyMiddleware
Namespace:
NLog.Web
Assembly:
NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax public class NLogRequestPostedBodyMiddleware
Public Class NLogRequestPostedBodyMiddleware
Dim instance As NLogRequestPostedBodyMiddleware
type NLogRequestPostedBodyMiddleware = class end
The NLogRequestPostedBodyMiddleware type exposes the following members.
Constructors Methods
| Name | Description |
---|
| Invoke |
This allows interception of the HTTP pipeline for logging purposes
|
TopRemarks
Usage:
app.UseMiddleware<NLogRequestPostBodyMiddleware>(); where app is an IApplicationBuilder
See Also