8 instantiations of RequestHeadersLogEnricherOptions
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (8)
Logging\RequestHeadersEnricherTests.cs (8)
63var options = new RequestHeadersLogEnricherOptions(); 80var options = new RequestHeadersLogEnricherOptions 113var options = new RequestHeadersLogEnricherOptions 143var options = new RequestHeadersLogEnricherOptions 170var options = new RequestHeadersLogEnricherOptions 195var options = new RequestHeadersLogEnricherOptions 222var options = new RequestHeadersLogEnricherOptions 263var options = new RequestHeadersLogEnricherOptions
18 references to RequestHeadersLogEnricherOptions
Microsoft.AspNetCore.Diagnostics.Middleware (5)
Logging\RequestHeadersEnricherServiceCollectionExtensions.cs (3)
24_ = services.AddOptionsWithValidateOnStart<RequestHeadersLogEnricherOptions, RequestHeadersLogEnricherOptionsValidator>(); 34/// <param name="configure">The <see cref="RequestHeadersLogEnricherOptions"/> configuration delegate.</param> 37public static IServiceCollection AddRequestHeadersLogEnricher(this IServiceCollection services, Action<RequestHeadersLogEnricherOptions> configure)
Logging\RequestHeadersLogEnricher.cs (1)
32public RequestHeadersLogEnricher(IHttpContextAccessor httpContextAccessor, IOptions<RequestHeadersLogEnricherOptions> options,
Logging\RequestHeadersLogEnricherOptionsValidator.cs (1)
9internal sealed partial class RequestHeadersLogEnricherOptionsValidator : IValidateOptions<RequestHeadersLogEnricherOptions>
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (13)
Logging\RequestHeadersEnricherExtensionsTests.cs (2)
65var options = serviceProvider.GetRequiredService<IOptions<RequestHeadersLogEnricherOptions>>().Value;
Logging\RequestHeadersEnricherTests.cs (8)
63var options = new RequestHeadersLogEnricherOptions(); 80var options = new RequestHeadersLogEnricherOptions 113var options = new RequestHeadersLogEnricherOptions 143var options = new RequestHeadersLogEnricherOptions 170var options = new RequestHeadersLogEnricherOptions 195var options = new RequestHeadersLogEnricherOptions 222var options = new RequestHeadersLogEnricherOptions 263var options = new RequestHeadersLogEnricherOptions
Logging\TestExtensions.cs (3)
11public static IOptions<RequestHeadersLogEnricherOptions> ToOptions(this RequestHeadersLogEnricherOptions options) 13var mock = new Mock<IOptions<RequestHeadersLogEnricherOptions>>();