KeyedServiceExtensions.AddTransientNamedService 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
AddTransientNamedService<TService,TInstance>(IServiceCollection, String)
- Source:
- KeyedService.cs
임시 명명된 서비스 등록
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransientNamedService<TService,TInstance> (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, string name) where TService : class where TInstance : class, TService;
static member AddTransientNamedService : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Service : null)
<Extension()>
Public Function AddTransientNamedService(Of TService As Class, TInstance As Class) (collection As IServiceCollection, name As String) As IServiceCollection
형식 매개 변수
- TService
- TInstance
매개 변수
- collection
- IServiceCollection
- name
- String
반환
적용 대상
AddTransientNamedService<TService>(IServiceCollection, String, Func<IServiceProvider,String,TService>)
- Source:
- KeyedService.cs
임시 명명된 서비스 등록
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransientNamedService<TService> (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, string name, Func<IServiceProvider,string,TService> factory) where TService : class;
static member AddTransientNamedService : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Func<IServiceProvider, string, 'Service (requires 'Service : null)> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Service : null)
<Extension()>
Public Function AddTransientNamedService(Of TService As Class) (collection As IServiceCollection, name As String, factory As Func(Of IServiceProvider, String, TService)) As IServiceCollection
형식 매개 변수
- TService
매개 변수
- collection
- IServiceCollection
- name
- String
- factory
- Func<IServiceProvider,String,TService>