Sdílet prostřednictvím


ServiceDescriptor.Describe Metoda

Definice

Přetížení

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

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

Describe(Type, Type, ServiceLifetime)

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

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

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

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

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

Parametry

serviceType
Type

Typ služby.

implementationFactory
Func<IServiceProvider,Object>

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

lifetime
ServiceLifetime

Životnost služby.

Návraty

Nová instance objektu ServiceDescriptor.

Platí pro

Describe(Type, Type, ServiceLifetime)

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

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

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

Parametry

serviceType
Type

Typ služby.

implementationType
Type

Typ implementace.

lifetime
ServiceLifetime

Životnost služby.

Návraty

Nová instance objektu ServiceDescriptor.

Platí pro