Aracılığıyla paylaş


ServiceDescriptor.Describe Yöntem

Tanım

Aşırı Yüklemeler

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

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

Describe(Type, Type, ServiceLifetime)

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

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

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 ^ 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

Parametreler

serviceType
Type

Hizmetin türü.

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

Describe(Type, Type, ServiceLifetime)

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 ^ 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

Parametreler

serviceType
Type

Hizmetin türü.

implementationType
Type

Uygulamanın türü.

lifetime
ServiceLifetime

Hizmetin ömrü.

Döndürülenler

Yeni bir ServiceDescriptor örneği.

Şunlara uygulanır