Compartir vía


ServiceDescriptor.DescribeKeyed Método

Definición

Sobrecargas

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

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

DescribeKeyed(Type, Object, Type, ServiceLifetime)

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

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

Source:
ServiceDescriptor.cs
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 ^ DescribeKeyed(Type ^ serviceType, System::Object ^ serviceKey, Func<IServiceProvider ^, System::Object ^, System::Object ^> ^ implementationFactory, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor DescribeKeyed (Type serviceType, object? serviceKey, Func<IServiceProvider,object?,object> implementationFactory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
static member DescribeKeyed : Type * obj * Func<IServiceProvider, obj, obj> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Shared Function DescribeKeyed (serviceType As Type, serviceKey As Object, implementationFactory As Func(Of IServiceProvider, Object, Object), lifetime As ServiceLifetime) As ServiceDescriptor

Parámetros

serviceType
Type

Tipo de servicio.

serviceKey
Object

El ServiceKey del servicio.

implementationFactory
Func<IServiceProvider,Object,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

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Source:
ServiceDescriptor.cs
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 ^ DescribeKeyed(Type ^ serviceType, System::Object ^ serviceKey, Type ^ implementationType, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor DescribeKeyed (Type serviceType, object? serviceKey, Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
static member DescribeKeyed : Type * obj * Type * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Shared Function DescribeKeyed (serviceType As Type, serviceKey As Object, implementationType As Type, lifetime As ServiceLifetime) As ServiceDescriptor

Parámetros

serviceType
Type

Tipo de servicio.

serviceKey
Object

El ServiceKey del servicio.

implementationType
Type

El tipo de la implementación.

lifetime
ServiceLifetime

La duración del servicio.

Devoluciones

Nueva instancia de ServiceDescriptor.

Se aplica a