| NLogRequestPostedBodyMiddlewareOptionsShouldCapture Property |
If this returns true, the post request body will be captured
Defaults to true if content length <= 30KB
This can be used to capture only certain content types,
only certain hosts, only below a certain request body size, and so forth
Namespace:
NLog.Web
Assembly:
NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax public Predicate<HttpContext> ShouldCapture { get; set; }
Public Property ShouldCapture As Predicate(Of HttpContext)
Get
Set
Dim instance As NLogRequestPostedBodyMiddlewareOptions
Dim value As Predicate(Of HttpContext)
value = instance.ShouldCapture
instance.ShouldCapture = value
member ShouldCapture : Predicate<HttpContext> with get, set
Return Value
Type:
PredicateHttpContextSee Also