25 references to Create
Aspire.Dashboard.Components.Tests (1)
Shared\IntegrationTestHelpers.cs (1)
14return LoggerFactory.Create(builder =>
Aspire.Dashboard.Tests (7)
Integration\IntegrationTestHelpers.cs (2)
28return LoggerFactory.Create(builder => 143var loggerFactory = LoggerFactory.Create(builder =>
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)
428var factory = LoggerFactory.Create(b => 473var factory = LoggerFactory.Create(b =>
TelemetryRepositoryTests\TraceTests.cs (1)
100var factory = LoggerFactory.Create(b => b.AddProvider(new TestLoggerProvider(testSink)));
BuildValidator (1)
Program.cs (1)
114var loggerFactory = LoggerFactory.Create(builder =>
Microsoft.CodeAnalysis.LanguageServer (1)
Program.cs (1)
62LoggerFactory.Create(builder =>
Microsoft.CodeAnalysis.Rebuild.UnitTests (4)
CompilationOptionsReaderTests.cs (1)
36var factory = LoggerFactory.Create(configure => { });
CSharpRebuildTests.cs (1)
30var factory = LoggerFactory.Create(configure => { });
RoundTripUtil.cs (2)
44var factory = LoggerFactory.Create(configure => { }); 77var factory = LoggerFactory.Create(configure => { });
Microsoft.DotNet.SwaggerGenerator.CmdLine (1)
Program.cs (1)
80ILogger logger = LoggerFactory.Create(builder => builder.AddSimpleConsole()).CreateLogger("dotnet-swaggergen");
Microsoft.Extensions.AI.Integration.Tests (4)
ChatClientIntegrationTests.cs (4)
514using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace)); 533using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace)); 555using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace)); 581using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(LogLevel.Trace));
Microsoft.Extensions.AI.Tests (5)
ChatCompletion\LoggingChatClientTests.cs (2)
32using var factory = LoggerFactory.Create(b => b.AddFakeLogging()); 98using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)).SetMinimumLevel(level));
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
34using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)));
Embeddings\LoggingEmbeddingGeneratorTests.cs (1)
31using var factory = LoggerFactory.Create(b => b.AddFakeLogging());
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
29using ILoggerFactory loggerFactory = LoggerFactory.Create(b => b.AddProvider(new FakeLoggerProvider(collector)));
Microsoft.ML.GenAI.Samples (1)
Llama\SFT_Llama_3_2_1B.cs (1)
25using var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole());