ServiceCollectionServiceExtensions.AddSingleton …
https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.dependencyinjection.servicecollectionserviceextensions.addsingleton?view=dotnet-plat-ext-8.0
Adds a singleton service of the type specified in serviceType with a factory specified in implementationFactory to the specified IServiceCollection. <Extension()> Public … services IServiceCollection Namespace: Microsoft.Extensions.DependencyInjection Adds a singleton service of the type specified in serviceType to the specified IServiceColle…
Adds a singleton service of the type specified in serviceType with a factory specified in implementationFactory to the specified IServiceCollection. <Extension()> Public …
services IServiceCollection
Namespace: Microsoft.Extensions.DependencyInjection
Adds a singleton service of the type specified in serviceType to the specified IServiceColle…
DA: 32 PA: 92 MOZ Rank: 90