17 instantiations of W3CLoggerOptions
Microsoft.AspNetCore.HttpLogging.Tests (17)
FileLoggerProcessorTests.cs (9)
39var options = new W3CLoggerOptions() 71var options = new W3CLoggerOptions() 122var options = new W3CLoggerOptions() 163var options = new W3CLoggerOptions() 217var options = new W3CLoggerOptions() 277var options = new W3CLoggerOptions() 363var options = new W3CLoggerOptions() 426var options = new W3CLoggerOptions() 495var options = new W3CLoggerOptions()
W3CLoggerOptionsTests.cs (5)
11var options = new W3CLoggerOptions(); 20var options = new W3CLoggerOptions(); 28var options = new W3CLoggerOptions(); 35var options = new W3CLoggerOptions(); 42var options = new W3CLoggerOptions();
W3CLoggerTests.cs (2)
18var options = new W3CLoggerOptions() 61var options = new W3CLoggerOptions()
W3CLoggingMiddlewareTests.cs (1)
310var options = new W3CLoggerOptions();
57 references to W3CLoggerOptions
Microsoft.AspNetCore.HttpLogging (19)
FileLoggerProcessor.cs (8)
27private readonly IOptionsMonitor<W3CLoggerOptions> _options; 40public FileLoggerProcessor(IOptionsMonitor<W3CLoggerOptions> options, IHostEnvironment environment, ILoggerFactory factory) 45var loggerOptions = _options.CurrentValue; 65_additionalHeaders = W3CLoggerOptions.FilterRequestHeaders(loggerOptions); 78if (_fileNumber >= W3CLoggerOptions.MaxFileCount) 84_additionalHeaders = W3CLoggerOptions.FilterRequestHeaders(loggerOptions); 172if (_fileNumber >= W3CLoggerOptions.MaxFileCount) 207if (_fileNumber >= W3CLoggerOptions.MaxFileCount)
HttpLoggingServicesExtensions.cs (2)
62/// <param name="configureOptions">A delegate to configure the <see cref="W3CLoggerOptions"/>.</param> 64public static IServiceCollection AddW3CLogging(this IServiceCollection services, Action<W3CLoggerOptions> configureOptions)
W3CLogger.cs (2)
14private readonly IOptionsMonitor<W3CLoggerOptions> _options; 17public W3CLogger(IOptionsMonitor<W3CLoggerOptions> options, W3CLoggerProcessor messageQueue)
W3CLoggerOptions.cs (1)
126internal static ISet<string> FilterRequestHeaders(W3CLoggerOptions options)
W3CLoggerProcessor.cs (2)
19public W3CLoggerProcessor(IOptionsMonitor<W3CLoggerOptions> options, IHostEnvironment environment, ILoggerFactory factory) : base(options, environment, factory) 22_additionalRequestHeaders = W3CLoggerOptions.FilterRequestHeaders(options.CurrentValue);
W3CLoggingMiddleware.cs (4)
21private readonly IOptionsMonitor<W3CLoggerOptions> _options; 53public W3CLoggingMiddleware(RequestDelegate next, IOptionsMonitor<W3CLoggerOptions> options, W3CLogger w3cLogger) 62_additionalRequestHeaders = W3CLoggerOptions.FilterRequestHeaders(options.CurrentValue); 72var options = _options.CurrentValue;
Microsoft.AspNetCore.HttpLogging.Tests (38)
FileLoggerProcessorTests.cs (23)
39var options = new W3CLoggerOptions() 43await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 71var options = new W3CLoggerOptions() 81await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 122var options = new W3CLoggerOptions() 127await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 163var options = new W3CLoggerOptions() 169await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 217var options = new W3CLoggerOptions() 225await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), testLogger)) 249await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), testLogger2)) 277var options = new W3CLoggerOptions() 283await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 296await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 322await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 363var options = new W3CLoggerOptions() 372await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 384await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 426var options = new W3CLoggerOptions() 437await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 450await using (var logger = new FileLoggerProcessor(new OptionsWrapperMonitor<W3CLoggerOptions>(options), new HostingEnvironment(), NullLoggerFactory.Instance)) 495var options = new W3CLoggerOptions() 504var monitor = new OptionsWrapperMonitor<W3CLoggerOptions>(options);
Helpers.cs (1)
27public static TestW3CLogger CreateTestW3CLogger(IOptionsMonitor<W3CLoggerOptions> options)
TestW3CLogger.cs (1)
10public TestW3CLogger(IOptionsMonitor<W3CLoggerOptions> options, TestW3CLoggerProcessor processor) : base(options, processor)
TestW3CLoggerProcessor.cs (1)
18public TestW3CLoggerProcessor(IOptionsMonitor<W3CLoggerOptions> options, IHostEnvironment environment, ILoggerFactory factory) : base(options, environment, factory)
W3CLoggerOptionsTests.cs (5)
11var options = new W3CLoggerOptions(); 20var options = new W3CLoggerOptions(); 28var options = new W3CLoggerOptions(); 35var options = new W3CLoggerOptions(); 42var options = new W3CLoggerOptions();
W3CLoggerTests.cs (4)
18var options = new W3CLoggerOptions() 25await using (var logger = Helpers.CreateTestW3CLogger(new OptionsWrapperMonitor<W3CLoggerOptions>(options))) 61var options = new W3CLoggerOptions() 68await using (var logger = Helpers.CreateTestW3CLogger(new OptionsWrapperMonitor<W3CLoggerOptions>(options)))
W3CLoggingMiddlewareTests.cs (3)
308private IOptionsMonitor<W3CLoggerOptions> CreateOptionsAccessor() 310var options = new W3CLoggerOptions(); 311var optionsAccessor = Mock.Of<IOptionsMonitor<W3CLoggerOptions>>(o => o.CurrentValue == options);