ServiceDescriptor.Describe 메서드

정의

오버로드

Describe(Type, Func<IServiceProvider,Object>, ServiceLifetime)

지정된 serviceType, implementationFactorylifetime을 사용하여 ServiceDescriptor의 인스턴스를 만듭니다.Creates an instance of ServiceDescriptor with the specified serviceType, implementationFactory, and lifetime.

Describe(Type, Type, ServiceLifetime)

지정된 serviceType, implementationTypelifetime을 사용하여 ServiceDescriptor의 인스턴스를 만듭니다.Creates an instance of ServiceDescriptor with the specified serviceType, implementationType, and lifetime.

Describe(Type, Func<IServiceProvider,Object>, ServiceLifetime)

지정된 serviceType, implementationFactorylifetime을 사용하여 ServiceDescriptor의 인스턴스를 만듭니다.Creates an instance of ServiceDescriptor with the specified serviceType, implementationFactory, and lifetime.

public:
 static Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ Describe(Type ^ serviceType, Func<IServiceProvider ^, System::Object ^> ^ implementationFactory, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Describe (Type serviceType, Func<IServiceProvider,object> implementationFactory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
static member Describe : Type * Func<IServiceProvider, obj> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Shared Function Describe (serviceType As Type, implementationFactory As Func(Of IServiceProvider, Object), lifetime As ServiceLifetime) As ServiceDescriptor

매개 변수

serviceType
Type

서비스의 유형입니다.The type of the service.

implementationFactory
Func<IServiceProvider,Object>

서비스 구현의 새 인스턴스를 만들 팩터리입니다.A factory to create new instances of the service implementation.

lifetime
ServiceLifetime

서비스의 수명입니다.The lifetime of the service.

반환

ServiceDescriptor의 새 인스턴스입니다.A new instance of ServiceDescriptor.

Describe(Type, Type, ServiceLifetime)

지정된 serviceType, implementationTypelifetime을 사용하여 ServiceDescriptor의 인스턴스를 만듭니다.Creates an instance of ServiceDescriptor with the specified serviceType, implementationType, and lifetime.

public:
 static Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ Describe(Type ^ serviceType, Type ^ implementationType, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Describe (Type serviceType, Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
static member Describe : Type * Type * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Shared Function Describe (serviceType As Type, implementationType As Type, lifetime As ServiceLifetime) As ServiceDescriptor

매개 변수

serviceType
Type

서비스의 유형입니다.The type of the service.

implementationType
Type

구현 유형입니다.The type of the implementation.

lifetime
ServiceLifetime

서비스의 수명입니다.The lifetime of the service.

반환

ServiceDescriptor의 새 인스턴스입니다.A new instance of ServiceDescriptor.

적용 대상