Bagikan melalui


ServiceDescriptor.Describe Metode

Definisi

Overload

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

Membuat instans ServiceDescriptor dengan , , implementationFactorydan lifetimeyang ditentukanserviceType.

Describe(Type, Type, ServiceLifetime)

Membuat instans ServiceDescriptor dengan , , implementationTypedan lifetimeyang ditentukanserviceType.

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

Sumber:
ServiceDescriptor.cs
Sumber:
ServiceDescriptor.cs
Sumber:
ServiceDescriptor.cs

Membuat instans ServiceDescriptor dengan , , implementationFactorydan lifetimeyang ditentukanserviceType.

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

Parameter

serviceType
Type

Jenis layanan.

implementationFactory
Func<IServiceProvider,Object>

Pabrik untuk membuat instans baru implementasi layanan.

lifetime
ServiceLifetime

Masa pakai layanan.

Mengembalikan

Instans baru .ServiceDescriptor

Berlaku untuk

Describe(Type, Type, ServiceLifetime)

Sumber:
ServiceDescriptor.cs
Sumber:
ServiceDescriptor.cs
Sumber:
ServiceDescriptor.cs

Membuat instans ServiceDescriptor dengan , , implementationTypedan lifetimeyang ditentukanserviceType.

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

Parameter

serviceType
Type

Jenis layanan.

implementationType
Type

Jenis implementasinya.

lifetime
ServiceLifetime

Masa pakai layanan.

Mengembalikan

Instans baru .ServiceDescriptor

Berlaku untuk