다음을 통해 공유


KeyedServiceExtensions 클래스

정의

키 지정된 서비스를 사용하기 위한 확장입니다.

public static class KeyedServiceExtensions
type KeyedServiceExtensions = class
Public Module KeyedServiceExtensions
상속
KeyedServiceExtensions

메서드

AddSingletonKeyedService<TKey,TService,TInstance>(IServiceCollection, TKey)

싱글톤 키 서비스 등록

AddSingletonKeyedService<TKey,TService>(IServiceCollection, TKey, Func<IServiceProvider,TKey,TService>)

싱글톤 키 서비스 등록

AddSingletonNamedService<TService,TInstance>(IServiceCollection, String)

singleton 명명된 서비스 등록

AddSingletonNamedService<TService>(IServiceCollection, String, Func<IServiceProvider,String,TService>)

singleton 명명된 서비스 등록

AddSingletonNamedService<TService>(IServiceCollection, String, Type)

키 지정된 서비스를 사용하기 위한 확장입니다.

AddTransientKeyedService<TKey,TService,TInstance>(IServiceCollection, TKey)

임시 키 서비스 등록

AddTransientKeyedService<TKey,TService>(IServiceCollection, TKey, Func<IServiceProvider,TKey,TService>)

임시 키 서비스 등록

AddTransientNamedService<TService,TInstance>(IServiceCollection, String)

임시 명명된 서비스 등록

AddTransientNamedService<TService>(IServiceCollection, String, Func<IServiceProvider,String,TService>)

임시 명명된 서비스 등록

GetServiceByKey<TKey,TService>(IServiceProvider, TKey)

키로 서비스를 획득합니다.

GetServiceByName<TService>(IServiceProvider, String)

이름으로 서비스를 획득합니다.

적용 대상