Condividi tramite


ServiceDescriptor.Describe Metodo

Definizione

Overload

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

Crea un'istanza di ServiceDescriptor con gli oggetti serviceType, implementationFactory e lifetime specificati.

Describe(Type, Type, ServiceLifetime)

Crea un'istanza di ServiceDescriptor con gli oggetti serviceType, implementationType e lifetime specificati.

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

Origine:
ServiceDescriptor.cs
Origine:
ServiceDescriptor.cs
Origine:
ServiceDescriptor.cs
Origine:
ServiceDescriptor.cs
Origine:
ServiceDescriptor.cs

Crea un'istanza di ServiceDescriptor con gli oggetti serviceType, implementationFactory e lifetime specificati.

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

Parametri

serviceType
Type

Tipo di servizio.

implementationFactory
Func<IServiceProvider,Object>

Factory per la creazione di nuove istanze dell'implementazione del servizio.

lifetime
ServiceLifetime

Durata del servizio.

Restituisce

Nuova istanza di ServiceDescriptor.

Si applica a

Describe(Type, Type, ServiceLifetime)

Origine:
ServiceDescriptor.cs
Origine:
ServiceDescriptor.cs
Origine:
ServiceDescriptor.cs
Origine:
ServiceDescriptor.cs
Origine:
ServiceDescriptor.cs

Crea un'istanza di ServiceDescriptor con gli oggetti serviceType, implementationType e lifetime specificati.

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

Parametri

serviceType
Type

Tipo di servizio.

implementationType
Type

Tipo di implementazione.

lifetime
ServiceLifetime

Durata del servizio.

Restituisce

Nuova istanza di ServiceDescriptor.

Si applica a