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