KeyedServiceCollectionExtensions 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.
Extension method for IServiceProvider for working with IKeyedServiceCollection<TKey,TService>.
public static class KeyedServiceCollectionExtensions
type KeyedServiceCollectionExtensions = class
Public Module KeyedServiceCollectionExtensions
- Inheritance
-
KeyedServiceCollectionExtensions
Methods
GetRequiredServiceByKey<TKey,TService>(IServiceProvider, TKey) |
Acquire a service by key, throwing if the service is not found. |
GetRequiredServiceByName<TService>(IServiceProvider, String) |
Acquire a service by name, throwing if it is not found. |
GetServiceByKey<TKey,TService>(IServiceProvider, TKey) |
Acquire a service by key. |
GetServiceByName<TService>(IServiceProvider, String) |
Acquire a service by name. |