ServiceDescriptor 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
ServiceDescriptor(Type, Object) |
지정된 |
ServiceDescriptor(Type, Func<IServiceProvider,Object>, ServiceLifetime) |
지정된 ServiceDescriptor을 사용하여 |
ServiceDescriptor(Type, Object, Object) |
지정된 |
ServiceDescriptor(Type, Type, ServiceLifetime) |
지정된 ServiceDescriptor을 사용하여 |
ServiceDescriptor(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime) |
지정된 ServiceDescriptor을 사용하여 |
ServiceDescriptor(Type, Object, Type, ServiceLifetime) |
지정된 ServiceDescriptor을 사용하여 |
ServiceDescriptor(Type, Object)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
지정된 instance
및 Singleton을 사용하여 ServiceDescriptor의 새 인스턴스를 초기화합니다.
public:
ServiceDescriptor(Type ^ serviceType, System::Object ^ instance);
public ServiceDescriptor (Type serviceType, object instance);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * obj -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, instance As Object)
매개 변수
- instance
- Object
서비스를 구현하는 인스턴스입니다.
적용 대상
ServiceDescriptor(Type, Func<IServiceProvider,Object>, ServiceLifetime)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
지정된 ServiceDescriptor을 사용하여 factory
의 새 인스턴스를 초기화합니다.
public:
ServiceDescriptor(Type ^ serviceType, Func<IServiceProvider ^, System::Object ^> ^ factory, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public ServiceDescriptor (Type serviceType, Func<IServiceProvider,object> factory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * Func<IServiceProvider, obj> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, factory As Func(Of IServiceProvider, Object), lifetime As ServiceLifetime)
매개 변수
- factory
- Func<IServiceProvider,Object>
서비스 인스턴스를 만드는 데 사용되는 팩터리입니다.
- lifetime
- ServiceLifetime
서비스의 ServiceLifetime입니다.
적용 대상
ServiceDescriptor(Type, Object, Object)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
지정된 instance
및 Singleton을 사용하여 ServiceDescriptor의 새 인스턴스를 초기화합니다.
public:
ServiceDescriptor(Type ^ serviceType, System::Object ^ serviceKey, System::Object ^ instance);
public ServiceDescriptor (Type serviceType, object? serviceKey, object instance);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * obj * obj -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, serviceKey As Object, instance As Object)
매개 변수
- serviceKey
- Object
서비스의 ServiceKey입니다.
- instance
- Object
서비스를 구현하는 인스턴스입니다.
적용 대상
ServiceDescriptor(Type, Type, ServiceLifetime)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
지정된 ServiceDescriptor을 사용하여 implementationType
의 새 인스턴스를 초기화합니다.
public:
ServiceDescriptor(Type ^ serviceType, Type ^ implementationType, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public ServiceDescriptor (Type serviceType, Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * Type * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, implementationType As Type, lifetime As ServiceLifetime)
매개 변수
- lifetime
- ServiceLifetime
서비스의 ServiceLifetime입니다.
적용 대상
ServiceDescriptor(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
지정된 ServiceDescriptor을 사용하여 factory
의 새 인스턴스를 초기화합니다.
public:
ServiceDescriptor(Type ^ serviceType, System::Object ^ serviceKey, Func<IServiceProvider ^, System::Object ^, System::Object ^> ^ factory, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public ServiceDescriptor (Type serviceType, object? serviceKey, Func<IServiceProvider,object?,object> factory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * obj * Func<IServiceProvider, obj, obj> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, serviceKey As Object, factory As Func(Of IServiceProvider, Object, Object), lifetime As ServiceLifetime)
매개 변수
- serviceKey
- Object
서비스의 ServiceKey입니다.
- factory
- Func<IServiceProvider,Object,Object>
서비스 인스턴스를 만드는 데 사용되는 팩터리입니다.
- lifetime
- ServiceLifetime
서비스의 ServiceLifetime입니다.
적용 대상
ServiceDescriptor(Type, Object, Type, ServiceLifetime)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
지정된 ServiceDescriptor을 사용하여 implementationType
의 새 인스턴스를 초기화합니다.
public:
ServiceDescriptor(Type ^ serviceType, System::Object ^ serviceKey, Type ^ implementationType, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public ServiceDescriptor (Type serviceType, object? serviceKey, Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * obj * Type * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, serviceKey As Object, implementationType As Type, lifetime As ServiceLifetime)
매개 변수
- serviceKey
- Object
서비스의 ServiceKey입니다.
- lifetime
- ServiceLifetime
서비스의 ServiceLifetime입니다.
적용 대상
.NET