ServiceCollection 클래스

정의

의 기본 구현입니다 IServiceCollection.

public ref class ServiceCollection : Microsoft::Extensions::DependencyInjection::IServiceCollection, System::Collections::Generic::ICollection<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IList<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>
public class ServiceCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Collections.Generic.ICollection<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IList<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>
type ServiceCollection = class
    interface IServiceCollection
    interface IList<ServiceDescriptor>
    interface ICollection<ServiceDescriptor>
    interface seq<ServiceDescriptor>
    interface IEnumerable
type ServiceCollection = class
    interface IServiceCollection
    interface ICollection<ServiceDescriptor>
    interface seq<ServiceDescriptor>
    interface IEnumerable
    interface IList<ServiceDescriptor>
Public Class ServiceCollection
Implements ICollection(Of ServiceDescriptor), IEnumerable(Of ServiceDescriptor), IList(Of ServiceDescriptor), IServiceCollection
상속
ServiceCollection
구현

생성자

Name Description
ServiceCollection()

ServiceCollection 클래스의 새 인스턴스를 초기화합니다.

속성

Name Description
Count

에 포함된 ICollection<T>요소 수를 가져옵니다.

IsReadOnly

읽기 전용인지 여부를 ICollection<T> 나타내는 값을 가져옵니다.

Item[Int32]

지정된 인덱스에서 요소를 가져오거나 설정합니다.

메서드

Name Description
Clear()

에서 모든 항목을 ICollection<T>제거합니다.

Contains(ServiceDescriptor)

특정 값이 ICollection<T> 포함되어 있는지 여부를 확인합니다.

CopyTo(ServiceDescriptor[], Int32)

특정 ICollection<T> 인덱스에서 시작하여 Array 요소를 Array복사합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetEnumerator()

컬렉션을 반복하는 열거자를 반환합니다.

GetHashCode()

기본 해시 함수로 사용됩니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
IndexOf(ServiceDescriptor)

에서 특정 항목의 인덱스를 IList<T>결정합니다.

Insert(Int32, ServiceDescriptor)

지정된 인덱스에 항목을 IList<T> 삽입합니다.

MakeReadOnly()

이 컬렉션을 읽기 전용으로 만듭니다.

MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
Remove(ServiceDescriptor)

에서 특정 개체의 첫 번째 항목을 제거합니다 ICollection<T>.

RemoveAt(Int32)

지정된 인덱스의 IList<T> 항목을 제거합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

Name Description
ICollection<ServiceDescriptor>.Add(ServiceDescriptor)

에 항목을 ICollection<T>추가합니다.

IEnumerable.GetEnumerator()

컬렉션을 반복하는 열거자를 반환합니다.

확장명 메서드

Name Description
Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

에 시퀀스를 ServiceDescriptorcollection추가합니다.

Add(IServiceCollection, ServiceDescriptor)

에 지정된 값을 descriptorcollection추가합니다.

AddHostedService<THostedService>(IServiceCollection, Func<IServiceProvider,THostedService>)

지정된 형식에 IHostedService 대한 등록을 추가합니다.

AddHostedService<THostedService>(IServiceCollection)

지정된 형식에 IHostedService 대한 등록을 추가합니다.

AddHybridCache(IServiceCollection, Action<HybridCacheOptions>)

다중 계층 캐싱 서비스에 대한 지원을 추가합니다.

AddHybridCache(IServiceCollection)

다중 계층 캐싱 서비스에 대한 지원을 추가합니다.

AddKeyedHybridCache(IServiceCollection, Object, Action<HybridCacheOptions>)

키 등록을 사용하여 다중 계층 캐싱 서비스에 대한 지원을 추가합니다.

AddKeyedHybridCache(IServiceCollection, Object, String, Action<HybridCacheOptions>)

키 등록을 사용하여 다중 계층 캐싱 서비스에 대한 지원을 추가합니다.

AddKeyedHybridCache(IServiceCollection, Object, String)

키 등록을 사용하여 다중 계층 캐싱 서비스에 대한 지원을 추가합니다.

AddKeyedHybridCache(IServiceCollection, Object)

키 등록을 사용하여 다중 계층 캐싱 서비스에 대한 지원을 추가합니다.

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

지정된 팩터리를 사용하여 지정된 serviceTypeimplementationFactory 형식의 범위가 지정된 서비스를 추가합니다 IServiceCollection.

AddKeyedScoped(IServiceCollection, Type, Object, Type)

지정된 형식의 구현을 사용하여 지정된 serviceType 형식의 범위가 지정된 서비스를 지정한 형식에 implementationType 추가합니다 IServiceCollection.

AddKeyedScoped(IServiceCollection, Type, Object)

지정된 형식의 범위가 지정된 serviceType 서비스를 추가합니다 IServiceCollection.

AddKeyedScoped<TService,TImplementation>(IServiceCollection, Object, Func<IServiceProvider,Object,TImplementation>)

지정된 팩터리를 사용하여 지정된 TService 구현 형식으로 지정된 TImplementation 형식의 범위가 지정된 implementationFactory 서비스를 추가합니다IServiceCollection.

AddKeyedScoped<TService,TImplementation>(IServiceCollection, Object)

지정된 구현 형식 TService 을 사용하여 지정된 TImplementation 형식의 범위가 지정된 서비스를 추가합니다IServiceCollection.

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

지정된 팩터리를 사용하여 지정된 TServiceimplementationFactory 형식의 범위가 지정된 서비스를 추가합니다 IServiceCollection.

AddKeyedScoped<TService>(IServiceCollection, Object)

지정된 형식의 범위가 지정된 TService 서비스를 추가합니다 IServiceCollection.

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

지정된 팩터리를 사용하여 지정된 serviceTypeimplementationFactory 형식의 싱글톤 서비스를 추가합니다 IServiceCollection.

AddKeyedSingleton(IServiceCollection, Type, Object, Object)

지정된 인스턴스 serviceType 를 사용하여 지정된 implementationInstance 형식의 싱글톤 서비스를 추가합니다IServiceCollection.

AddKeyedSingleton(IServiceCollection, Type, Object, Type)

지정된 형식의 구현과 함께 지정된 serviceType 형식의 싱글톤 서비스를 지정된 형식에 implementationType 추가합니다 IServiceCollection.

AddKeyedSingleton(IServiceCollection, Type, Object)

지정된 형식의 싱글톤 서비스를 지정된 serviceType 에 추가합니다 IServiceCollection.

AddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object, Func<IServiceProvider,Object,TImplementation>)

지정된 팩터리를 사용하여 지정된 TService 구현 형식으로 지정된 TImplementation 형식의 implementationFactory 싱글톤 서비스를 추가합니다IServiceCollection.

AddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object)

지정된 구현 형식 TService 을 사용하여 지정된 TImplementation 형식의 싱글톤 서비스를 추가합니다IServiceCollection.

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

지정된 팩터리를 사용하여 지정된 TServiceimplementationFactory 형식의 싱글톤 서비스를 추가합니다 IServiceCollection.

AddKeyedSingleton<TService>(IServiceCollection, Object, TService)

지정된 인스턴스 TService 를 사용하여 지정된 implementationInstance 형식의 싱글톤 서비스를 추가합니다IServiceCollection.

AddKeyedSingleton<TService>(IServiceCollection, Object)

지정된 형식의 싱글톤 서비스를 지정된 TService 에 추가합니다 IServiceCollection.

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

지정된 팩터리를 사용하여 지정된 serviceTypeimplementationFactory 형식의 임시 서비스를 추가합니다 IServiceCollection.

AddKeyedTransient(IServiceCollection, Type, Object, Type)

지정된 형식의 구현을 사용하여 지정된 serviceType 형식의 임시 서비스를 지정된 형식에 implementationType 추가합니다 IServiceCollection.

AddKeyedTransient(IServiceCollection, Type, Object)

지정된 형식의 임시 서비스를 지정된 serviceType 에 추가합니다 IServiceCollection.

AddKeyedTransient<TService,TImplementation>(IServiceCollection, Object, Func<IServiceProvider,Object,TImplementation>)

지정된 팩터리를 사용하여 지정된 TService 구현 형식으로 지정된 TImplementation 형식의 implementationFactory 임시 서비스를 추가합니다IServiceCollection.

AddKeyedTransient<TService,TImplementation>(IServiceCollection, Object)

지정된 구현 형식 TService 을 사용하여 지정된 TImplementation 형식의 임시 서비스를 추가합니다IServiceCollection.

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

지정된 팩터리를 사용하여 지정된 TServiceimplementationFactory 형식의 임시 서비스를 추가합니다 IServiceCollection.

AddKeyedTransient<TService>(IServiceCollection, Object)

지정된 형식의 임시 서비스를 지정된 TService 에 추가합니다 IServiceCollection.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

지정된 에 로깅 서비스를 추가합니다 IServiceCollection.

AddLogging(IServiceCollection)

지정된 에 로깅 서비스를 추가합니다 IServiceCollection.

AddOptions(IServiceCollection)

옵션을 사용하는 데 필요한 서비스를 추가합니다.

AddOptions<TOptions>(IServiceCollection, String)

기본 서비스 컬렉션에 명명된 TOptions 것과 동일한 구성 호출을 전달하는 옵션 작성기를 가져옵니다.

AddOptions<TOptions>(IServiceCollection)

기본 서비스 컬렉션에 동일한 TOptions 구성 호출을 전달하는 옵션 작성기를 가져옵니다.

AddOptionsWithValidateOnStart<TOptions,TValidateOptions>(IServiceCollection, String)

옵션을 사용하는 데 필요한 서비스를 추가하고 런타임이 아닌 시작 시 옵션 유효성 검사 검사를 적용합니다.

AddOptionsWithValidateOnStart<TOptions>(IServiceCollection, String)

옵션을 사용하는 데 필요한 서비스를 추가하고 런타임이 아닌 시작 시 옵션 유효성 검사 검사를 적용합니다.

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

지정된 팩터리를 사용하여 지정된 serviceTypeimplementationFactory 형식의 범위가 지정된 서비스를 추가합니다 IServiceCollection.

AddScoped(IServiceCollection, Type, Type)

지정된 형식의 구현을 사용하여 지정된 serviceType 형식의 범위가 지정된 서비스를 지정한 형식에 implementationType 추가합니다 IServiceCollection.

AddScoped(IServiceCollection, Type)

지정된 형식의 범위가 지정된 serviceType 서비스를 추가합니다 IServiceCollection.

AddScoped<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

지정된 팩터리를 사용하여 지정된 TService 구현 형식으로 지정된 TImplementation 형식의 범위가 지정된 implementationFactory 서비스를 추가합니다IServiceCollection.

AddScoped<TService,TImplementation>(IServiceCollection)

지정된 구현 형식 TService 을 사용하여 지정된 TImplementation 형식의 범위가 지정된 서비스를 추가합니다IServiceCollection.

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

지정된 팩터리를 사용하여 지정된 TServiceimplementationFactory 형식의 범위가 지정된 서비스를 추가합니다 IServiceCollection.

AddScoped<TService>(IServiceCollection)

지정된 형식의 범위가 지정된 TService 서비스를 추가합니다 IServiceCollection.

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

지정된 팩터리를 사용하여 지정된 serviceTypeimplementationFactory 형식의 싱글톤 서비스를 추가합니다 IServiceCollection.

AddSingleton(IServiceCollection, Type, Object)

지정된 인스턴스 serviceType 를 사용하여 지정된 implementationInstance 형식의 싱글톤 서비스를 추가합니다IServiceCollection.

AddSingleton(IServiceCollection, Type, Type)

지정된 형식의 구현과 함께 지정된 serviceType 형식의 싱글톤 서비스를 지정된 형식에 implementationType 추가합니다 IServiceCollection.

AddSingleton(IServiceCollection, Type)

지정된 형식의 싱글톤 서비스를 지정된 serviceType 에 추가합니다 IServiceCollection.

AddSingleton<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

지정된 팩터리를 사용하여 지정된 TService 구현 형식으로 지정된 TImplementation 형식의 implementationFactory 싱글톤 서비스를 추가합니다IServiceCollection.

AddSingleton<TService,TImplementation>(IServiceCollection)

지정된 구현 형식 TService 을 사용하여 지정된 TImplementation 형식의 싱글톤 서비스를 추가합니다IServiceCollection.

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

지정된 팩터리를 사용하여 지정된 TServiceimplementationFactory 형식의 싱글톤 서비스를 추가합니다 IServiceCollection.

AddSingleton<TService>(IServiceCollection, TService)

지정된 인스턴스 TService 를 사용하여 지정된 implementationInstance 형식의 싱글톤 서비스를 추가합니다IServiceCollection.

AddSingleton<TService>(IServiceCollection)

지정된 형식의 싱글톤 서비스를 지정된 TService 에 추가합니다 IServiceCollection.

AddSystemd(IServiceCollection)

기본 제공 IHostservices의 수명을 SystemdLifetime 구성하고, 애플리케이션 시작 및 중지에 대한 알림 메시지를 제공하고, 콘솔 로깅을 시스템화된 형식으로 구성합니다.

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

지정된 팩터리를 사용하여 지정된 serviceTypeimplementationFactory 형식의 임시 서비스를 추가합니다 IServiceCollection.

AddTransient(IServiceCollection, Type, Type)

지정된 형식의 구현을 사용하여 지정된 serviceType 형식의 임시 서비스를 지정된 형식에 implementationType 추가합니다 IServiceCollection.

AddTransient(IServiceCollection, Type)

지정된 형식의 임시 서비스를 지정된 serviceType 에 추가합니다 IServiceCollection.

AddTransient<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

지정된 팩터리를 사용하여 지정된 TService 구현 형식으로 지정된 TImplementation 형식의 implementationFactory 임시 서비스를 추가합니다IServiceCollection.

AddTransient<TService,TImplementation>(IServiceCollection)

지정된 구현 형식 TService 을 사용하여 지정된 TImplementation 형식의 임시 서비스를 추가합니다IServiceCollection.

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

지정된 팩터리를 사용하여 지정된 TServiceimplementationFactory 형식의 임시 서비스를 추가합니다 IServiceCollection.

AddTransient<TService>(IServiceCollection)

지정된 형식의 임시 서비스를 지정된 TService 에 추가합니다 IServiceCollection.

AddWindowsService(IServiceCollection, Action<WindowsServiceLifetimeOptions>)

빌드 IHostservices 된 원본의 WindowsServiceLifetime 수명을 구성하고 애플리케이션 이름을 기본 원본 이름으로 사용하여 이벤트 로그에 로깅을 사용하도록 설정합니다.

AddWindowsService(IServiceCollection)

빌드 IHostservices 된 원본의 WindowsServiceLifetime 수명을 구성하고 애플리케이션 이름을 기본 원본 이름으로 사용하여 이벤트 로그에 로깅을 사용하도록 설정합니다.

BuildServiceProvider(IServiceCollection, Boolean)

제공된 ServiceProviderIServiceCollection 선택적으로 범위 유효성 검사를 사용하도록 설정하여 포함된 서비스를 만듭니다.

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

제공된 ServiceProviderIServiceCollection 선택적으로 범위 유효성 검사를 사용하도록 설정하여 포함된 서비스를 만듭니다.

BuildServiceProvider(IServiceCollection)

제공ServiceProviderIServiceCollection 서비스에서 포함된 서비스를 만듭니다.

Configure<TOptions>(IServiceCollection, Action<TOptions>)

특정 유형의 옵션을 구성하는 데 사용되는 작업을 등록합니다. 참고: 모두 전에 PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)실행됩니다.

Configure<TOptions>(IServiceCollection, String, Action<TOptions>)

특정 유형의 옵션을 구성하는 데 사용되는 작업을 등록합니다. 참고: 모두 전에 PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)실행됩니다.

ConfigureAll<TOptions>(IServiceCollection, Action<TOptions>)

특정 유형의 옵션의 모든 인스턴스를 구성하는 데 사용되는 작업을 등록합니다.

ConfigureOptions(IServiceCollection, Object)

모든 개체를 IConfigureOptions<TOptions>IPostConfigureOptions<TOptions>등록하고 IValidateOptions<TOptions> 등록합니다.

ConfigureOptions(IServiceCollection, Type)

모든 형식을 IConfigureOptions<TOptions>IPostConfigureOptions<TOptions>등록하고 IValidateOptions<TOptions> 등록합니다.

ConfigureOptions<TConfigureOptions>(IServiceCollection)

모든 형식을 IConfigureOptions<TOptions>IPostConfigureOptions<TOptions>등록하고 IValidateOptions<TOptions> 등록합니다.

PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)

특정 유형의 옵션을 초기화하는 데 사용되는 작업을 등록합니다. 참고: 이 작업은 결국 Configure<TOptions>(IServiceCollection, Action<TOptions>)실행됩니다.

PostConfigure<TOptions>(IServiceCollection, String, Action<TOptions>)

특정 유형의 옵션을 구성하는 데 사용되는 작업을 등록합니다. 참고: 이 작업은 결국 Configure<TOptions>(IServiceCollection, Action<TOptions>)실행됩니다.

PostConfigureAll<TOptions>(IServiceCollection, Action<TOptions>)

특정 유형의 옵션의 모든 인스턴스 구성을 게시하는 데 사용되는 작업을 등록합니다. 참고: 이 작업은 결국 Configure<TOptions>(IServiceCollection, Action<TOptions>)실행됩니다.

RemoveAll(IServiceCollection, Type)

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

RemoveAll<T>(IServiceCollection)

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

RemoveAllKeyed(IServiceCollection, Type, Object)

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

RemoveAllKeyed<T>(IServiceCollection, Object)

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

Replace(IServiceCollection, ServiceDescriptor)

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

TryAdd(IServiceCollection, IEnumerable<ServiceDescriptor>)

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

TryAdd(IServiceCollection, ServiceDescriptor)

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

TryAddEnumerable(IServiceCollection, IEnumerable<ServiceDescriptor>)

동일한 ServiceDescriptor 기존 설명자와 아직 존재하지 ServiceType않는 구현인 경우 지정된 servicess를 추가합니다.

TryAddEnumerable(IServiceCollection, ServiceDescriptor)

ServiceDescriptor 동일한 ServiceType 기존 설명자와 아직 존재하지 services않는 구현이 있는 경우를 추가합니다.

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

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

TryAddKeyedScoped(IServiceCollection, Type, Object, Type)

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

TryAddKeyedScoped(IServiceCollection, Type, Object)

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

TryAddKeyedScoped<TService,TImplementation>(IServiceCollection, Object)

서비스 TServiceScoped 유형이 아직 등록되지 않은 경우 지정된 TImplementationcollection 서비스 구현 형식을 추가합니다.

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

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

TryAddKeyedScoped<TService>(IServiceCollection, Object)

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

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

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

TryAddKeyedSingleton(IServiceCollection, Type, Object, Type)

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

TryAddKeyedSingleton(IServiceCollection, Type, Object)

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

TryAddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object)

서비스 TServiceSingleton 유형이 아직 등록되지 않은 경우 지정된 TImplementationcollection 서비스 구현 형식을 추가합니다.

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

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

TryAddKeyedSingleton<TService>(IServiceCollection, Object, TService)

지정된 인스턴스가 TService 있는 서비스로 지정된 Singletoninstance 서비스를 서비스 유형이 collection 아직 등록되지 않은 경우 추가합니다.

TryAddKeyedSingleton<TService>(IServiceCollection, Object)

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

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

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

TryAddKeyedTransient(IServiceCollection, Type, Object, Type)

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

TryAddKeyedTransient(IServiceCollection, Type, Object)

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

TryAddKeyedTransient<TService,TImplementation>(IServiceCollection, Object)

서비스 TServiceTransient 유형이 아직 등록되지 않은 경우 지정된 TImplementationcollection 서비스 구현 형식을 추가합니다.

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

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

TryAddKeyedTransient<TService>(IServiceCollection, Object)

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

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

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

TryAddScoped(IServiceCollection, Type, Type)

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

TryAddScoped(IServiceCollection, Type)

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

TryAddScoped<TService,TImplementation>(IServiceCollection)

서비스 TServiceScoped 유형이 아직 등록되지 않은 경우 지정된 TImplementationcollection 서비스 구현 형식을 추가합니다.

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

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

TryAddScoped<TService>(IServiceCollection)

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

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

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

TryAddSingleton(IServiceCollection, Type, Type)

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

TryAddSingleton(IServiceCollection, Type)

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

TryAddSingleton<TService,TImplementation>(IServiceCollection)

서비스 TServiceSingleton 유형이 아직 등록되지 않은 경우 지정된 TImplementationcollection 서비스 구현 형식을 추가합니다.

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

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

TryAddSingleton<TService>(IServiceCollection, TService)

지정된 인스턴스가 TService 있는 서비스로 지정된 Singletoninstance 서비스를 서비스 유형이 collection 아직 등록되지 않은 경우 추가합니다.

TryAddSingleton<TService>(IServiceCollection)

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

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

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

TryAddTransient(IServiceCollection, Type, Type)

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

TryAddTransient(IServiceCollection, Type)

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

TryAddTransient<TService,TImplementation>(IServiceCollection)

서비스 TServiceTransient 유형이 아직 등록되지 않은 경우 지정된 TImplementationcollection 서비스 구현 형식을 추가합니다.

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

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

TryAddTransient<TService>(IServiceCollection)

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

적용 대상