21 instantiations of FakeLogCollectorOptions
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Windows\WindowsContainerSnapshotProviderTests.cs (1)
48FakeLogCollector.Create(new FakeLogCollectorOptions { TimeProvider = new FakeTimeProvider() }));
Microsoft.Extensions.Diagnostics.Testing (3)
Logging\FakeLogCollector.cs (1)
38_options = new FakeLogCollectorOptions();
Logging\FakeLogger.cs (1)
52: this(FakeLogCollector.Create(new FakeLogCollectorOptions { OutputSink = outputSink }), category)
Logging\FakeLoggerT.cs (1)
38: this(FakeLogCollector.Create(new FakeLogCollectorOptions { OutputSink = outputSink }))
Microsoft.Extensions.Diagnostics.Testing.Tests (11)
Logging\FakeLogCollectorOptionsTests.cs (1)
14var options = new FakeLogCollectorOptions();
Logging\FakeLogCollectorTests.cs (2)
45var options = new FakeLogCollectorOptions 87var options = new FakeLogCollectorOptions
Logging\FakeLogCollectorTests.LogEnumeration.cs (2)
28var fakeLogCollector = FakeLogCollector.Create(new FakeLogCollectorOptions()); 89var fakeLogCollector = FakeLogCollector.Create(new FakeLogCollectorOptions());
Logging\FakeLoggerTests.cs (6)
20var options = new FakeLogCollectorOptions 182var options = new FakeLogCollectorOptions 200var options = new FakeLogCollectorOptions 222var options = new FakeLogCollectorOptions 247var options = new FakeLogCollectorOptions 295var options = new FakeLogCollectorOptions
Microsoft.Extensions.Http.Diagnostics.Tests (6)
Logging\HttpClientLoggerTest.cs (5)
311new FakeLogCollectorOptions()))); 417var fakeLogger = new FakeLogger<HttpClientLogger>(new FakeLogCollector(Options.Options.Create(new FakeLogCollectorOptions()))); 516Options.Options.Create(new FakeLogCollectorOptions()))); 629var fakeLogger = new FakeLogger<HttpClientLogger>(new FakeLogCollector(Options.Options.Create(new FakeLogCollectorOptions()))); 900var fakeLogger = new FakeLogger<HttpClientLogger>(new FakeLogCollector(Options.Options.Create(new FakeLogCollectorOptions())));
Logging\HttpRequestReaderTest.cs (1)
792new FakeLogCollectorOptions())));
24 references to FakeLogCollectorOptions
Microsoft.Extensions.Diagnostics.Testing (13)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (5)
78if (type == typeof(global::Microsoft.Extensions.Logging.Testing.FakeLogCollectorOptions)) 80var temp = (global::Microsoft.Extensions.Logging.Testing.FakeLogCollectorOptions)instance; 179public static void BindCore(IConfiguration configuration, ref global::Microsoft.Extensions.Logging.Testing.FakeLogCollectorOptions instance, bool defaultValueIfNotFound, BinderOptions? binderOptions) 181ValidateConfigurationKeys(typeof(global::Microsoft.Extensions.Logging.Testing.FakeLogCollectorOptions), s_configKeys_FakeLogCollectorOptions, configuration, binderOptions);
Logging\FakeLogCollector.cs (3)
22private readonly FakeLogCollectorOptions _options; 28public FakeLogCollector(IOptions<FakeLogCollectorOptions> options) 46public static FakeLogCollector Create(FakeLogCollectorOptions options)
Logging\FakeLoggerBuilderExtensions.cs (3)
23/// <param name="section">Configuration section that contains <see cref="FakeLogCollectorOptions"/>.</param> 31_ = builder.Services.Configure<FakeLogCollectorOptions>(section); 43public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder, Action<FakeLogCollectorOptions> configure)
Logging\FakeLoggerServiceCollectionExtensions.cs (2)
20/// <param name="section">Configuration section that contains <see cref="FakeLogCollectorOptions"/>.</param> 31public static IServiceCollection AddFakeLogging(this IServiceCollection services, Action<FakeLogCollectorOptions> configure)
Microsoft.Extensions.Diagnostics.Testing.Tests (11)
Logging\FakeLogCollectorOptionsTests.cs (1)
14var options = new FakeLogCollectorOptions();
Logging\FakeLogCollectorTests.cs (3)
45var options = new FakeLogCollectorOptions 87var options = new FakeLogCollectorOptions 125Assert.Throws<ArgumentException>(() => new FakeLogCollector(Microsoft.Extensions.Options.Options.Create((FakeLogCollectorOptions)null!)));
Logging\FakeLoggerExtensionsTests.cs (1)
57{ $"Logging:{nameof(FakeLogCollectorOptions.FilteredCategories)}:0", "Storage" },
Logging\FakeLoggerTests.cs (6)
20var options = new FakeLogCollectorOptions 182var options = new FakeLogCollectorOptions 200var options = new FakeLogCollectorOptions 222var options = new FakeLogCollectorOptions 247var options = new FakeLogCollectorOptions 295var options = new FakeLogCollectorOptions