Compartir a través de


ServiceDescriptor.Describe Método

Definición

Sobrecargas

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

Crea una instancia de ServiceDescriptor con los valores serviceType, implementationFactory y lifetime especificados.

Describe(Type, Type, ServiceLifetime)

Crea una instancia de ServiceDescriptor con los valores serviceType, implementationType y lifetime especificados.

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

Source:
ServiceDescriptor.cs
Source:
ServiceDescriptor.cs
Source:
ServiceDescriptor.cs

Crea una instancia de ServiceDescriptor con los valores serviceType, implementationFactory y lifetime especificados.

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

Parámetros

serviceType
Type

Tipo de servicio.

implementationFactory
Func<IServiceProvider,Object>

Un generador para crear instancias de la implementación del servicio.

lifetime
ServiceLifetime

La duración del servicio.

Devoluciones

Nueva instancia de ServiceDescriptor.

Se aplica a

Describe(Type, Type, ServiceLifetime)

Source:
ServiceDescriptor.cs
Source:
ServiceDescriptor.cs
Source:
ServiceDescriptor.cs

Crea una instancia de ServiceDescriptor con los valores serviceType, implementationType y lifetime especificados.

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

Parámetros

serviceType
Type

Tipo de servicio.

implementationType
Type

El tipo de la implementación.

lifetime
ServiceLifetime

La duración del servicio.

Devoluciones

Nueva instancia de ServiceDescriptor.

Se aplica a