Click or drag to resize

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: 6.0.0+59339f2811712b446adf6dcd8a6bad39ad9f2ba1
Syntax
public class NLogRequestPostedBodyMiddleware

The NLogRequestPostedBodyMiddleware type exposes the following members.

Constructors
  NameDescription
Public methodNLogRequestPostedBodyMiddleware
Initializes new instance of the NLogRequestPostedBodyMiddleware class
Top
Methods
  NameDescription
Public methodInvoke
This allows interception of the HTTP pipeline for logging purposes
Top
Remarks
Usage: app.UseMiddleware<NLogRequestPostBodyMiddleware>(); where app is an IApplicationBuilder
See Also