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: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
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