32 references to ToOptionsMonitor
Microsoft.Extensions.Http.Diagnostics.Tests (32)
Logging\HttpClientLoggerTest.cs (12)
95
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
219
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
317
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
421
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
518
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
629
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
680
new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object),
723
new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object),
758
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), Mock.Of<IHttpHeadersRedactor>());
899
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
947
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), new Mock<IHttpHeadersRedactor>().Object);
996
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), Mock.Of<IHttpHeadersRedactor>());
Logging\HttpHeadersReaderTest.cs (4)
27
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), Mock.Of<IHttpHeadersRedactor>());
65
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
129
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
174
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), Mock.Of<IHttpHeadersRedactor>());
Logging\HttpRequestReaderTest.cs (16)
74
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(serviceKey), mockHeadersRedactor.Object, serviceKey);
77
var reader = new HttpRequestReader(serviceProvider, options.
ToOptionsMonitor
(serviceKey), serviceProvider.GetRequiredService<IHttpRouteFormatter>(),
137
var headersReader = new HttpHeadersReader(options.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
140
var reader = new HttpRequestReader(serviceProvider, options.
ToOptionsMonitor
(), serviceProvider.GetRequiredService<IHttpRouteFormatter>(),
200
var headersReader = new HttpHeadersReader(opts.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
203
var reader = new HttpRequestReader(serviceProvider, opts.
ToOptionsMonitor
(),
275
var headersReader = new HttpHeadersReader(opts.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
278
var reader = new HttpRequestReader(serviceProvider, opts.
ToOptionsMonitor
(),
347
var headersReader = new HttpHeadersReader(opts.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
350
var reader = new HttpRequestReader(serviceProvider, opts.
ToOptionsMonitor
(),
405
var headersReader = new HttpHeadersReader(opts.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
408
var reader = new HttpRequestReader(serviceProvider, opts.
ToOptionsMonitor
(),
476
var headersReader = new HttpHeadersReader(opts.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
479
var reader = new HttpRequestReader(serviceProvider, opts.
ToOptionsMonitor
(),
543
var headersReader = new HttpHeadersReader(opts.
ToOptionsMonitor
(), mockHeadersRedactor.Object);
546
var reader = new HttpRequestReader(serviceProvider, opts.
ToOptionsMonitor
(),