31 references to LoggerFactory
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
58var fakeLoggerFactory = new LoggerFactory([fakeLoggerProvider, new XunitLoggerProvider(output)]);
IIS.Microbenchmarks (1)
PlaintextBenchmark.cs (1)
26_server = TestServer.Create(builder => builder.UseMiddleware<PlaintextMiddleware>(), new LoggerFactory(), new IISServerOptions()).GetAwaiter().GetResult();
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTest.cs (1)
1404builder.AddSingleton<ILoggerFactory>(new LoggerFactory());
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3775loggerFactory ?? new LoggerFactory(),
Microsoft.AspNetCore.Identity.Test (6)
SecurityStampValidatorTest.cs (6)
122services.AddSingleton<ISecurityStampValidator>(new SecurityStampValidator<PocoUser>(options.Object, signInManager.Object, new LoggerFactory())); 176services.AddSingleton<ISecurityStampValidator>(new SecurityStampValidator<PocoUser>(options.Object, signInManager, new LoggerFactory())); 217services.AddSingleton<ISecurityStampValidator>(new SecurityStampValidator<PocoUser>(options.Object, signInManager.Object, new LoggerFactory())); 255services.AddSingleton<ISecurityStampValidator>(new SecurityStampValidator<PocoUser>(options.Object, signInManager.Object, new LoggerFactory())); 293services.AddSingleton<ISecurityStampValidator>(new SecurityStampValidator<PocoUser>(options.Object, signInManager.Object, new LoggerFactory())); 342services.AddSingleton<ITwoFactorSecurityStampValidator>(new TwoFactorSecurityStampValidator<PocoUser>(options.Object, signInManager.Object, new LoggerFactory()));
Microsoft.AspNetCore.InternalTesting.Tests (1)
LoggedTestXunitTests.cs (1)
108var loggerFactory = new LoggerFactory();
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
TestMvcOptions.cs (1)
37var loggerFactory = new LoggerFactory();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
Listener\ServerTests.cs (1)
135using var listener = new HttpSysListener(options, new LoggerFactory());
Listener\Utilities.cs (3)
50var listener = new HttpSysListener(options, new LoggerFactory()); 79var listener = new HttpSysListener(new HttpSysOptions(), new LoggerFactory()); 89var listener = new HttpSysListener(options, new LoggerFactory());
Utilities.cs (2)
115=> new MessagePump(Options.Create(new HttpSysOptions()), loggerFactory ?? new LoggerFactory(), new AuthenticationSchemeProvider(Options.Create(new AuthenticationOptions()))); 121return new MessagePump(Options.Create(options), loggerFactory ?? new LoggerFactory(), new AuthenticationSchemeProvider(Options.Create(new AuthenticationOptions())));
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (2)
Utilities.cs (2)
34=> new MessagePump(Options.Create(new HttpSysOptions()), loggerFactory ?? new LoggerFactory(), new AuthenticationSchemeProvider(Options.Create(new AuthenticationOptions()))); 40return new MessagePump(Options.Create(options), loggerFactory ?? new LoggerFactory(), new AuthenticationSchemeProvider(Options.Create(new AuthenticationOptions())));
Microsoft.AspNetCore.SignalR.Tests (3)
DefaultTransportFactoryTests.cs (3)
24Assert.NotNull(new DefaultTransportFactory(transportType, new LoggerFactory(), new HttpClient(), httpConnectionOptions: null, accessTokenProvider: null)); 36() => new DefaultTransportFactory(transportType, new LoggerFactory(), httpClient: null, httpConnectionOptions: null, accessTokenProvider: null)); 44new DefaultTransportFactory(HttpTransportType.WebSockets, new LoggerFactory(), httpClient: null, httpConnectionOptions: null, accessTokenProvider: null);
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\VerifyNoErrorScope.cs (1)
28LoggerFactory = loggerFactory ?? new LoggerFactory();
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Utilities\TestOutputLogger.cs (1)
18Factory = new LoggerFactory([new TestLoggerProvider(this)]);
WorkspaceProjectFactoryServiceTests.cs (1)
20var loggerFactory = new LoggerFactory();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\DiagnosticReporterLoggerProvider.cs (1)
31return new LoggerFactory(
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLoggerT.cs (1)
47using var factory = new LoggerFactory();
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerProviderTests.cs (1)
40using var factory = new LoggerFactory();
Microsoft.Extensions.Telemetry.Tests (1)
Logging\ExtendedLoggerTests.cs (1)
619using var loggerFactory = new LoggerFactory();
Sockets.BindTests (1)
SocketTransportFactoryTests.cs (1)
20var socketTransportFactory = new SocketTransportFactory(Options.Create(new SocketTransportOptions()), new LoggerFactory());