33 references to AddProvider
Aspire.Dashboard.Components.Tests (1)
Shared\IntegrationTestHelpers.cs (1)
20builder.AddProvider(new TestLoggerProvider(testSink));
Aspire.Dashboard.Tests (6)
Integration\IntegrationTestHelpers.cs (1)
34builder.AddProvider(new TestLoggerProvider(testSink));
Model\ApplicationsSelectHelpersTests.cs (2)
95var factory = LoggerFactory.Create(b => b.AddProvider(new TestLoggerProvider(testSink))); 119var factory = LoggerFactory.Create(b => b.AddProvider(new TestLoggerProvider(testSink)));
TelemetryRepositoryTests\OtlpHelpersTests.cs (2)
418b.AddProvider(new TestLoggerProvider(testSink)); 463b.AddProvider(new TestLoggerProvider(testSink));
TelemetryRepositoryTests\TraceTests.cs (1)
100var factory = LoggerFactory.Create(b => b.AddProvider(new TestLoggerProvider(testSink)));
Aspire.Hosting.Tests (1)
Dashboard\DashboardLifecycleHookTests.cs (1)
35b.AddProvider(new TestLoggerProvider(testSink));
BuildValidator (1)
Program.cs (1)
122builder.AddProvider(new DemoLoggerProvider());
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
313builder.AddProvider(new WebAssemblyConsoleLoggerProvider(DefaultWebAssemblyJSRuntime.Instance));
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostBuilderTest.cs (1)
242builder.Logging.AddProvider(provider.Object);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
JsonTranscodingServiceMethodProviderTests.cs (2)
112c.AddProvider(testProvider); 146c.AddProvider(testProvider);
Microsoft.AspNetCore.Hosting.Tests (4)
WebHostBuilderTests.cs (3)
305factory.AddProvider(provider); 1199factory.AddProvider(provider); 1694.ConfigureLogging((_, lf) => lf.AddProvider(loggerProvider))
WebHostTests.cs (1)
1094factory.AddProvider(new AllMessagesAreNeeded());
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3502o.AddProvider(new ForwardingLoggerProvider(LoggerFactory)); 3650o.AddProvider(new ForwardingLoggerProvider(loggerFactory));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Utilities.cs (1)
98.ConfigureLogging(builder => builder.AddProvider(new ForwardingLoggerProvider(loggerFactory)))
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\InProcessTestServer.cs (1)
107.AddProvider(new ForwardingLoggerProvider(_loggerFactory)))
Microsoft.Extensions.Telemetry.PerformanceTests (1)
ExtendedLoggerBench.cs (1)
61builder.AddProvider(new BenchLoggerProvider());
Microsoft.Extensions.Telemetry.Tests (10)
Logging\ExtendedLoggerFactoryTests.cs (6)
200.AddProvider(loggerProvider); 250.AddProvider(loggerProvider); 283.AddProvider(loggerProvider); 312.AddProvider(loggerProvider); 340.AddProvider(loggerProvider); 414.AddProvider(loggerProvider);
Logging\ExtendedLoggerTests.cs (4)
644builder.AddProvider(provider.Object); 672builder.AddProvider(provider.Object); 702builder.AddProvider(provider.Object); 737builder.AddProvider(provider.Object);
Microsoft.Gen.Logging.Generated.Tests (1)
Utils.cs (1)
75builder.AddProvider(new Provider(fakeLogger));