Skip to content

Commit

Permalink
AspNetRequestUrlRenderer - Mark Properties-option as DefaultParameter (
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot authored Sep 6, 2024
1 parent e843776 commit 1594490
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Shared/LayoutRenderers/AspNetRequestUrlRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
using NLog.Web.Internal;
using NLog.Common;
using NLog.Web.Enums;
using NLog.Config;

#if ASP_NET_CORE
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
Expand Down Expand Up @@ -34,6 +36,7 @@ public class AspNetRequestUrlRenderer : AspNetLayoutRendererBase
/// A flags enumeration that controls which of the five portions of the URL are logged.
/// Defaults to scheme://host/path, port and query string are by default not logged.
/// </summary>
[DefaultParameter]
public AspNetRequestUrlProperty Properties { get; set; } = AspNetRequestUrlProperty.Default;

/// <summary>
Expand Down

0 comments on commit 1594490

Please sign in to comment.