ServiceDescriptor.DescribeKeyed Metoda

Definice

Přetížení

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

Vytvoří instanci se ServiceDescriptor zadanými serviceType, implementationFactorya lifetime.

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Vytvoří instanci se ServiceDescriptor zadanými serviceType, implementationTypea lifetime.

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

Zdroj:
ServiceDescriptor.cs
Zdroj:
ServiceDescriptor.cs
Zdroj:
ServiceDescriptor.cs
Zdroj:
ServiceDescriptor.cs

Vytvoří instanci se ServiceDescriptor zadanými serviceType, implementationFactorya lifetime.

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

Parametry

serviceType
Type

Typ služby.

serviceKey
Object

Služby ServiceKey .

implementationFactory
Func<IServiceProvider,Object,Object>

Objekt pro vytváření nových instancí implementace služby.

lifetime
ServiceLifetime

Doba života služby.

Návraty

Nová instance .ServiceDescriptor

Platí pro

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Zdroj:
ServiceDescriptor.cs
Zdroj:
ServiceDescriptor.cs
Zdroj:
ServiceDescriptor.cs
Zdroj:
ServiceDescriptor.cs

Vytvoří instanci se ServiceDescriptor zadanými serviceType, implementationTypea lifetime.

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

Parametry

serviceType
Type

Typ služby.

serviceKey
Object

Služby ServiceKey .

implementationType
Type

Typ implementace.

lifetime
ServiceLifetime

Doba života služby.

Návraty

Nová instance .ServiceDescriptor

Platí pro