diff --git a/src/Shared/LayoutRenderers/AspNetRequestPostedBodyLayoutRenderer.cs b/src/Shared/LayoutRenderers/AspNetRequestPostedBodyLayoutRenderer.cs index c676abfa..19f0ae1e 100644 --- a/src/Shared/LayoutRenderers/AspNetRequestPostedBodyLayoutRenderer.cs +++ b/src/Shared/LayoutRenderers/AspNetRequestPostedBodyLayoutRenderer.cs @@ -18,7 +18,7 @@ namespace NLog.Web.LayoutRenderers [LayoutRenderer("aspnet-request-posted-body")] public class AspNetRequestPostedBodyLayoutRenderer : AspNetLayoutRendererBase { - internal static bool MiddlewareInstalled; + internal static bool MiddlewareInstalled { get; set; } /// /// The object for the key in HttpContext.Items for the POST request body diff --git a/src/Shared/Targets/Wrappers/AspNetBufferingTargetWrapper.cs b/src/Shared/Targets/Wrappers/AspNetBufferingTargetWrapper.cs index 033968d2..a51d8b89 100644 --- a/src/Shared/Targets/Wrappers/AspNetBufferingTargetWrapper.cs +++ b/src/Shared/Targets/Wrappers/AspNetBufferingTargetWrapper.cs @@ -74,7 +74,7 @@ namespace NLog.Web.Targets.Wrappers [Target("AspNetBufferingWrapper", IsWrapper = true)] public class AspNetBufferingTargetWrapper : WrapperTargetBase { - internal static bool MiddlewareInstalled; + internal static bool MiddlewareInstalled { get; set; } private static readonly object dataSlot = new object(); private int _bufferGrowLimit;