Aracılığıyla paylaş


ServiceDescriptor.DescribeKeyed Yöntem

Tanım

Aşırı Yüklemeler

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

Belirtilen serviceType, implementationFactoryve lifetimeile bir örneği ServiceDescriptor oluşturur.

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Belirtilen serviceType, implementationTypeve lifetimeile bir örneği ServiceDescriptor oluşturur.

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

Kaynak:
ServiceDescriptor.cs
Kaynak:
ServiceDescriptor.cs
Kaynak:
ServiceDescriptor.cs
Kaynak:
ServiceDescriptor.cs

Belirtilen serviceType, implementationFactoryve lifetimeile bir örneği ServiceDescriptor oluşturur.

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

Parametreler

serviceType
Type

Hizmetin türü.

serviceKey
Object

Hizmetin ServiceKey .

implementationFactory
Func<IServiceProvider,Object,Object>

Hizmet uygulamasının yeni örneklerini oluşturmak için bir fabrika.

lifetime
ServiceLifetime

Hizmetin ömrü.

Döndürülenler

Yeni bir ServiceDescriptor örneği.

Şunlara uygulanır

DescribeKeyed(Type, Object, Type, ServiceLifetime)

Kaynak:
ServiceDescriptor.cs
Kaynak:
ServiceDescriptor.cs
Kaynak:
ServiceDescriptor.cs
Kaynak:
ServiceDescriptor.cs

Belirtilen serviceType, implementationTypeve lifetimeile bir örneği ServiceDescriptor oluşturur.

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

Parametreler

serviceType
Type

Hizmetin türü.

serviceKey
Object

Hizmetin ServiceKey .

implementationType
Type

Uygulamanın türü.

lifetime
ServiceLifetime

Hizmetin ömrü.

Döndürülenler

Yeni bir ServiceDescriptor örneği.

Şunlara uygulanır