Edytuj

Udostępnij za pośrednictwem


KeyedServiceCollectionExtensions Class

Definition

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.

Applies to