NamedServiceCollectionExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extensions for adding named services to INamedServiceProvider<TService>.
public ref class NamedServiceCollectionExtensions abstract sealed
public static class NamedServiceCollectionExtensions
type NamedServiceCollectionExtensions = class
Public Module NamedServiceCollectionExtensions
- Inheritance
-
NamedServiceCollectionExtensions
Methods
AddNamedSingleton<TService,TImplementation>(IServiceCollection, String) |
Adds a singleton named service of the type specific in |
AddNamedSingleton<TService>(IServiceCollection, String, Func<IServiceProvider,TService>) |
Adds a singleton named service of the type specific in |
AddNamedSingleton<TService>(IServiceCollection, String) |
Adds a singleton named service of the type specific in |
AddNamedTransient<TService>(IServiceCollection, String, Func<IServiceProvider,TService>) |
Adds a transient named service of the type specific in |
AddNamedTransient<TService>(IServiceCollection, String) |
Adds a transient named service of the type specific in |