Skip to content

Commit

Permalink
Better diagnostics when missing HttpModule or MiddleWare - Fixed code…
Browse files Browse the repository at this point in the history
… smells (#980)
  • Loading branch information
snakefoot authored Aug 6, 2023
1 parent 4e496e8 commit 84f3a49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

/// <summary>
/// The object for the key in HttpContext.Items for the POST request body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 84f3a49

Please sign in to comment.