다음을 통해 공유


KeyedServiceExtensions.AddTransientKeyedService 메서드

정의

오버로드

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

임시 키 서비스 등록

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

임시 키 서비스 등록

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

Source:
KeyedService.cs

임시 키 서비스 등록

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransientKeyedService<TKey,TService,TInstance> (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, TKey key) where TService : class where TInstance : class, TService;
static member AddTransientKeyedService : Microsoft.Extensions.DependencyInjection.IServiceCollection * 'Key -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Service : null)
<Extension()>
Public Function AddTransientKeyedService(Of TKey, TService, TInstance) (collection As IServiceCollection, key As TKey) As IServiceCollection

형식 매개 변수

TKey
TService
TInstance

매개 변수

collection
IServiceCollection
key
TKey

반환

적용 대상

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

Source:
KeyedService.cs

임시 키 서비스 등록

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransientKeyedService<TKey,TService> (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, TKey key, Func<IServiceProvider,TKey,TService> factory) where TService : class;
static member AddTransientKeyedService : Microsoft.Extensions.DependencyInjection.IServiceCollection * 'Key * Func<IServiceProvider, 'Key, 'Service (requires 'Service : null)> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Service : null)
<Extension()>
Public Function AddTransientKeyedService(Of TKey, TService) (collection As IServiceCollection, key As TKey, factory As Func(Of IServiceProvider, TKey, TService)) As IServiceCollection

형식 매개 변수

TKey
TService

매개 변수

collection
IServiceCollection
key
TKey
factory
Func<IServiceProvider,TKey,TService>

반환

적용 대상