20 references to IncomingPathLoggingMode
Microsoft.AspNetCore.Diagnostics.Middleware (11)
Logging\HttpLoggingRedactionInterceptor.cs (7)
26private readonly IncomingPathLoggingMode _requestPathLogMode; 98if (_requestPathLogMode == IncomingPathLoggingMode.Formatted) 182private static IncomingPathLoggingMode EnsureRequestPathLoggingModeIsValid(IncomingPathLoggingMode mode) 185IncomingPathLoggingMode.Structured or IncomingPathLoggingMode.Formatted => mode, 186_ => throw new InvalidOperationException($"Unsupported value '{mode}' for enum type '{nameof(IncomingPathLoggingMode)}'"),
Logging\LoggingRedactionOptions.cs (4)
22private const IncomingPathLoggingMode DefaultRequestPathLoggingMode = IncomingPathLoggingMode.Formatted; 29/// The default value is <see cref="IncomingPathLoggingMode.Formatted"/>. 36public IncomingPathLoggingMode RequestPathLoggingMode { get; set; } = DefaultRequestPathLoggingMode;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (9)
Logging\AcceptanceTests.cs (3)
432[InlineData(IncomingPathLoggingMode.Structured)] 433[InlineData(IncomingPathLoggingMode.Formatted)] 434public async Task HttpLogging_WhenRedactionModeNone_LogIncomingRequestPath(IncomingPathLoggingMode pathLoggingMode)
Logging\AcceptanceTests.Mvc.cs (2)
96services => services.AddHttpLoggingRedaction(x => x.RequestPathLoggingMode = IncomingPathLoggingMode.Structured), 138x.RequestPathLoggingMode = IncomingPathLoggingMode.Structured;
Logging\AcceptanceTests.Routing.cs (1)
173options.RequestPathLoggingMode = IncomingPathLoggingMode.Structured;
Logging\HttpLoggingServiceExtensionsTests.cs (1)
48Assert.Equal(IncomingPathLoggingMode.Structured, options.RequestPathLoggingMode);
Logging\LoggingOptionsValidationTests.cs (2)
25.AddHttpLoggingRedaction(x => x.RequestPathLoggingMode = (IncomingPathLoggingMode)mode) 36public void Should_NotThrow_OnValidPathLoggingMode(IncomingPathLoggingMode mode)