| NLogRequestPostedBodyMiddleware Constructor |
Namespace:
NLog.Web
Assembly:
NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax public NLogRequestPostedBodyMiddleware(
RequestDelegate next,
NLogRequestPostedBodyMiddlewareOptions options = null
)
Public Sub New (
next As RequestDelegate,
Optional options As NLogRequestPostedBodyMiddlewareOptions = Nothing
)
Dim next As RequestDelegate
Dim options As NLogRequestPostedBodyMiddlewareOptions
Dim instance As New NLogRequestPostedBodyMiddleware(next, options)
new :
next : RequestDelegate *
?options : NLogRequestPostedBodyMiddlewareOptions
(* Defaults:
let _options = defaultArg options null
*)
-> NLogRequestPostedBodyMiddleware
Parameters
- next
- Type: RequestDelegate
- options (Optional)
- Type: NLog.WebNLogRequestPostedBodyMiddlewareOptions
Remarks
Use the following in Startup.cs:
1public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
2{
3 app.UseMiddleware<NLog.Web.NLogRequestPostedBodyMiddleware>();
4}
See Also