184 references to Singleton
Aspire.Azure.AI.Inference.Tests (1)
Aspire.Azure.AI.OpenAI.Tests (1)
Aspire.Azure.Data.Tables.Tests (1)
Aspire.Azure.Messaging.EventHubs.Tests (1)
Aspire.Azure.Messaging.ServiceBus.Tests (1)
Aspire.Azure.Messaging.WebPubSub.Tests (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (3)
Aspire.Azure.Npgsql.Tests (1)
Aspire.Azure.Search.Documents.Tests (1)
Aspire.Azure.Security.KeyVault.Tests (3)
Aspire.Azure.Storage.Blobs.Tests (1)
Aspire.Azure.Storage.Files.DataLake.Tests (1)
Aspire.Azure.Storage.Queues.Tests (1)
Aspire.Components.Common.TestUtilities (1)
Aspire.Confluent.Kafka.Tests (2)
Aspire.Hosting.Testing.Tests (1)
Aspire.Microsoft.Azure.Cosmos.Tests (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (3)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (3)
Aspire.Milvus.Client.Tests (1)
Aspire.MongoDB.Driver.Tests (1)
Aspire.MongoDB.Driver.v2.Tests (1)
Aspire.MongoDB.EntityFrameworkCore.Tests (2)
Aspire.MySqlConnector.Tests (1)
Aspire.NATS.Net.Tests (1)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (3)
Aspire.Npgsql.Tests (1)
Aspire.OpenAI.Tests (1)
Aspire.Oracle.EntityFrameworkCore.Tests (3)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (3)
Aspire.Qdrant.Client.Tests (1)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RabbitMQ.Client.v6.Tests (1)
Aspire.StackExchange.Redis.Tests (1)
Microsoft.AspNetCore.AsyncState.Tests (2)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.DotNet.Internal.DependencyInjection.Testing (2)
Microsoft.Extensions.AI (32)
Microsoft.Extensions.AI.Tests (22)
Microsoft.Extensions.AsyncState.Tests (3)
Microsoft.Extensions.DependencyInjection (3)
Microsoft.Extensions.DependencyInjection.Abstractions (63)
ServiceDescriptor.cs (27)
53/// as a <see cref="ServiceLifetime.Singleton"/>.
66/// as a <see cref="ServiceLifetime.Singleton"/>.
75: this(serviceType, serviceKey, ServiceLifetime.Singleton)
704/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
713return DescribeKeyed<TService, TImplementation>(null, ServiceLifetime.Singleton);
719/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
730return DescribeKeyed<TService, TImplementation>(serviceKey, ServiceLifetime.Singleton);
736/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
748return Describe(service, implementationType, ServiceLifetime.Singleton);
754/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
768return DescribeKeyed(service, serviceKey, implementationType, ServiceLifetime.Singleton);
775/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
788return Describe(typeof(TService), implementationFactory, ServiceLifetime.Singleton);
795/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
810return DescribeKeyed(typeof(TService), serviceKey, implementationFactory, ServiceLifetime.Singleton);
816/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
826return Describe(typeof(TService), implementationFactory, ServiceLifetime.Singleton);
832/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
845return DescribeKeyed(typeof(TService), serviceKey, implementationFactory, ServiceLifetime.Singleton);
851/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
863return Describe(serviceType, implementationFactory, ServiceLifetime.Singleton);
869/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
883return DescribeKeyed(serviceType, serviceKey, implementationFactory, ServiceLifetime.Singleton);
889/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
905/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
924/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
942/// and the <see cref="ServiceLifetime.Singleton"/> lifetime.
Microsoft.Extensions.Http (3)
Microsoft.Maui (2)