6 references to UseLogging
Microsoft.Extensions.AI.Tests (6)
Embeddings\LoggingEmbeddingGeneratorTests.cs (6)
28
Assert.Null(innerGenerator.AsBuilder().
UseLogging
(NullLoggerFactory.Instance).Build().GetService(typeof(LoggingEmbeddingGenerator<string, Embedding<float>>)));
29
Assert.Same(innerGenerator, innerGenerator.AsBuilder().
UseLogging
(NullLoggerFactory.Instance).Build().GetService(typeof(IEmbeddingGenerator<string, Embedding<float>>)));
32
Assert.NotNull(innerGenerator.AsBuilder().
UseLogging
(factory).Build().GetService(typeof(LoggingEmbeddingGenerator<string, Embedding<float>>)));
37
Assert.NotNull(innerGenerator.AsBuilder().
UseLogging
().Build(services).GetService(typeof(LoggingEmbeddingGenerator<string, Embedding<float>>)));
38
Assert.NotNull(innerGenerator.AsBuilder().
UseLogging
(null).Build(services).GetService(typeof(LoggingEmbeddingGenerator<string, Embedding<float>>)));
39
Assert.Null(innerGenerator.AsBuilder().
UseLogging
(NullLoggerFactory.Instance).Build(services).GetService(typeof(LoggingEmbeddingGenerator<string, Embedding<float>>)));