Share via


ServiceCollectionDescriptorExtensions 클래스

정의

IServiceCollection에 서비스를 추가 및 제거하는 확장 메서드입니다.

public ref class ServiceCollectionDescriptorExtensions abstract sealed
public static class ServiceCollectionDescriptorExtensions
type ServiceCollectionDescriptorExtensions = class
Public Module ServiceCollectionDescriptorExtensions
상속
ServiceCollectionDescriptorExtensions

메서드

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

ServiceDescriptor 시퀀스를 collection에 추가합니다.

Add(IServiceCollection, ServiceDescriptor)

지정된 descriptorcollection에 추가합니다.

RemoveAll(IServiceCollection, Type)

IServiceCollection에서 serviceType 형식의 모든 서비스를 제거합니다.

RemoveAll<T>(IServiceCollection)

IServiceCollection에서 T 형식의 모든 서비스를 제거합니다.

RemoveAllKeyed(IServiceCollection, Type, Object)

collection에서 serviceType 형식의 모든 서비스를 제거합니다.

RemoveAllKeyed<T>(IServiceCollection, Object)

collection에서 T 형식의 모든 서비스를 제거합니다.

Replace(IServiceCollection, ServiceDescriptor)

descriptor와 동일한 서비스 유형을 가진 IServiceCollection의 첫 번째 서비스를 제거하고 descriptor를 컬렉션에 추가합니다.

TryAdd(IServiceCollection, IEnumerable<ServiceDescriptor>)

서비스 유형이 아직 등록되지 않은 경우 지정된 descriptorscollection에 추가합니다.

TryAdd(IServiceCollection, ServiceDescriptor)

서비스 유형이 아직 등록되지 않은 경우 지정된 descriptorcollection에 추가합니다.

TryAddEnumerable(IServiceCollection, IEnumerable<ServiceDescriptor>)

기존 설명자와 ServiceType이 동일하고 services에 아직 구현이 없는 경우 지정된 ServiceDescriptor를 추가합니다.

TryAddEnumerable(IServiceCollection, ServiceDescriptor)

기존 설명자와 ServiceType이 동일하고 services에 아직 구현이 없는 경우 ServiceDescriptor를 추가합니다.

TryAddKeyedScoped(IServiceCollection, Type, Object)

서비스 유형이 아직 등록되지 않은 경우 지정된 servicecollectionScoped 서비스로 추가합니다.

TryAddKeyedScoped(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 servicecollectionScoped 서비스로 추가합니다.

TryAddKeyedScoped(IServiceCollection, Type, Object, Type)

서비스 유형이 아직 등록되지 않은 경우 implementationType 구현을 사용하여 지정된 servicecollectionScoped 서비스로 추가합니다.

TryAddKeyedScoped<TService,TImplementation>(IServiceCollection, Object)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServiceTImplementation에 지정된 Scoped 서비스 구현 형식으로 collection에 추가합니다.

TryAddKeyedScoped<TService>(IServiceCollection, Object)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServicecollectionScoped 서비스로 추가합니다.

TryAddKeyedScoped<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 TServiceservicesScoped 서비스로 추가합니다.

TryAddKeyedSingleton(IServiceCollection, Type, Object)

서비스 유형이 아직 등록되지 않은 경우 지정된 servicecollectionSingleton 서비스로 추가합니다.

TryAddKeyedSingleton(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 servicecollectionSingleton 서비스로 추가합니다.

TryAddKeyedSingleton(IServiceCollection, Type, Object, Type)

서비스 유형이 아직 등록되지 않은 경우 implementationType 구현을 사용하여 지정된 servicecollectionSingleton 서비스로 추가합니다.

TryAddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServiceTImplementation에 지정된 Singleton 서비스 구현 형식으로 collection에 추가합니다.

TryAddKeyedSingleton<TService>(IServiceCollection, Object)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServicecollectionSingleton 서비스로 추가합니다.

TryAddKeyedSingleton<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 TServiceservicesSingleton 서비스로 추가합니다.

TryAddKeyedSingleton<TService>(IServiceCollection, Object, TService)

서비스 유형이 아직 등록되지 않은 경우 instance에 지정된 인스턴스를 사용하여 지정된 TServicecollectionSingleton 서비스로 추가합니다.

TryAddKeyedTransient(IServiceCollection, Type, Object)

서비스 유형이 아직 등록되지 않은 경우 지정된 servicecollectionTransient 서비스로 추가합니다.

TryAddKeyedTransient(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 servicecollectionTransient 서비스로 추가합니다.

TryAddKeyedTransient(IServiceCollection, Type, Object, Type)

서비스 유형이 아직 등록되지 않은 경우 implementationType 구현을 사용하여 지정된 servicecollectionTransient 서비스로 추가합니다.

TryAddKeyedTransient<TService,TImplementation>(IServiceCollection, Object)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServiceTImplementation에 지정된 Transient 서비스 구현 형식으로 collection에 추가합니다.

TryAddKeyedTransient<TService>(IServiceCollection, Object)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServicecollectionTransient 서비스로 추가합니다.

TryAddKeyedTransient<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 TServiceservicesTransient 서비스로 추가합니다.

TryAddScoped(IServiceCollection, Type)

서비스 유형이 아직 등록되지 않은 경우 지정된 servicecollectionScoped 서비스로 추가합니다.

TryAddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 servicecollectionScoped 서비스로 추가합니다.

TryAddScoped(IServiceCollection, Type, Type)

서비스 유형이 아직 등록되지 않은 경우 implementationType 구현을 사용하여 지정된 servicecollectionScoped 서비스로 추가합니다.

TryAddScoped<TService,TImplementation>(IServiceCollection)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServiceTImplementation에 지정된 Scoped 서비스 구현 형식으로 collection에 추가합니다.

TryAddScoped<TService>(IServiceCollection)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServicecollectionScoped 서비스로 추가합니다.

TryAddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 TServiceservicesScoped 서비스로 추가합니다.

TryAddSingleton(IServiceCollection, Type)

서비스 유형이 아직 등록되지 않은 경우 지정된 servicecollectionSingleton 서비스로 추가합니다.

TryAddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 servicecollectionSingleton 서비스로 추가합니다.

TryAddSingleton(IServiceCollection, Type, Type)

서비스 유형이 아직 등록되지 않은 경우 implementationType 구현을 사용하여 지정된 servicecollectionSingleton 서비스로 추가합니다.

TryAddSingleton<TService,TImplementation>(IServiceCollection)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServiceTImplementation에 지정된 Singleton 서비스 구현 형식으로 collection에 추가합니다.

TryAddSingleton<TService>(IServiceCollection)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServicecollectionSingleton 서비스로 추가합니다.

TryAddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 TServiceservicesSingleton 서비스로 추가합니다.

TryAddSingleton<TService>(IServiceCollection, TService)

서비스 유형이 아직 등록되지 않은 경우 instance에 지정된 인스턴스를 사용하여 지정된 TServicecollectionSingleton 서비스로 추가합니다.

TryAddTransient(IServiceCollection, Type)

서비스 유형이 아직 등록되지 않은 경우 지정된 servicecollectionTransient 서비스로 추가합니다.

TryAddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 servicecollectionTransient 서비스로 추가합니다.

TryAddTransient(IServiceCollection, Type, Type)

서비스 유형이 아직 등록되지 않은 경우 implementationType 구현을 사용하여 지정된 servicecollectionTransient 서비스로 추가합니다.

TryAddTransient<TService,TImplementation>(IServiceCollection)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServiceTImplementation에 지정된 Transient 서비스 구현 형식으로 collection에 추가합니다.

TryAddTransient<TService>(IServiceCollection)

서비스 유형이 아직 등록되지 않은 경우 지정된 TServicecollectionTransient 서비스로 추가합니다.

TryAddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>)

서비스 유형이 아직 등록되지 않은 경우 implementationFactory에 지정된 팩터리를 사용하여 지정된 TServiceservicesTransient 서비스로 추가합니다.

적용 대상