12 references to Build
Microsoft.Extensions.AI (2)
Embeddings\EmbeddingGeneratorBuilderServiceCollectionExtensions.cs (2)
42_ = serviceCollection.AddSingleton(builder.Build); 80_ = serviceCollection.AddKeyedSingleton(serviceKey, (services, _) => builder.Build(services));
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceEmbeddingGeneratorTests.cs (1)
70.Build();
Microsoft.Extensions.AI.Integration.Tests (1)
EmbeddingGeneratorIntegrationTests.cs (1)
117.Build();
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaEmbeddingGeneratorTests.cs (1)
36.Build();
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIEmbeddingGeneratorTests.cs (2)
85.Build(); 108.Build();
Microsoft.Extensions.AI.Tests (5)
Embeddings\ConfigureOptionsEmbeddingGeneratorTests.cs (1)
64.Build();
Embeddings\EmbeddingGeneratorBuilderTests.cs (3)
31Assert.Equal(expectedOuterGenerator, builder.Build(expectedServiceProvider)); 46var first = (InnerServiceCapturingEmbeddingGenerator)builder.Build(); 77var ex = Assert.Throws<InvalidOperationException>(() => builder.Build());
Embeddings\UseDelegateEmbeddingGeneratorTests.cs (1)
63.Build();