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.5.0+9fe9421708749962bac8393d7cec5df976518ccb
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