ServiceDescriptor Constructors

Definitie

Overloads

Name Description
ServiceDescriptor(Type, Object)

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven instance als een Singleton.

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

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven factory.

ServiceDescriptor(Type, Object, Object)

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven instance als een Singleton.

ServiceDescriptor(Type, Type, ServiceLifetime)

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven implementationType.

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

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven factory.

ServiceDescriptor(Type, Object, Type, ServiceLifetime)

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven implementationType.

ServiceDescriptor(Type, Object)

Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven instance als een Singleton.

public:
 ServiceDescriptor(Type ^ serviceType, System::Object ^ instance);
public ServiceDescriptor(Type serviceType, object instance);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * obj -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, instance As Object)

Parameters

serviceType
Type

De Type service.

instance
Object

Het exemplaar dat de service implementeert.

Van toepassing op

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

Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven factory.

public:
 ServiceDescriptor(Type ^ serviceType, Func<IServiceProvider ^, System::Object ^> ^ factory, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public ServiceDescriptor(Type serviceType, Func<IServiceProvider,object> factory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * Func<IServiceProvider, obj> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, factory As Func(Of IServiceProvider, Object), lifetime As ServiceLifetime)

Parameters

serviceType
Type

De Type service.

factory
Func<IServiceProvider,Object>

Een fabriek die wordt gebruikt voor het maken van service-exemplaren.

lifetime
ServiceLifetime

De ServiceLifetime service.

Van toepassing op

ServiceDescriptor(Type, Object, Object)

Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven instance als een Singleton.

public:
 ServiceDescriptor(Type ^ serviceType, System::Object ^ serviceKey, System::Object ^ instance);
public ServiceDescriptor(Type serviceType, object? serviceKey, object instance);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * obj * obj -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, serviceKey As Object, instance As Object)

Parameters

serviceType
Type

De Type service.

serviceKey
Object

De ServiceKey service.

instance
Object

Het exemplaar dat de service implementeert.

Van toepassing op

ServiceDescriptor(Type, Type, ServiceLifetime)

Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven implementationType.

public:
 ServiceDescriptor(Type ^ serviceType, Type ^ implementationType, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public ServiceDescriptor(Type serviceType, Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * Type * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, implementationType As Type, lifetime As ServiceLifetime)

Parameters

serviceType
Type

De Type service.

implementationType
Type

De Type implementatie van de service.

lifetime
ServiceLifetime

De ServiceLifetime service.

Van toepassing op

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

Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven factory.

public:
 ServiceDescriptor(Type ^ serviceType, System::Object ^ serviceKey, Func<IServiceProvider ^, System::Object ^, System::Object ^> ^ factory, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public ServiceDescriptor(Type serviceType, object? serviceKey, Func<IServiceProvider,object?,object> factory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * obj * Func<IServiceProvider, obj, obj> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, serviceKey As Object, factory As Func(Of IServiceProvider, Object, Object), lifetime As ServiceLifetime)

Parameters

serviceType
Type

De Type service.

serviceKey
Object

De ServiceKey service.

factory
Func<IServiceProvider,Object,Object>

Een fabriek die wordt gebruikt voor het maken van service-exemplaren.

lifetime
ServiceLifetime

De ServiceLifetime service.

Van toepassing op

ServiceDescriptor(Type, Object, Type, ServiceLifetime)

Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs
Bron:
ServiceDescriptor.cs

Initialiseert een nieuw exemplaar van ServiceDescriptor met de opgegeven implementationType.

public:
 ServiceDescriptor(Type ^ serviceType, System::Object ^ serviceKey, Type ^ implementationType, Microsoft::Extensions::DependencyInjection::ServiceLifetime lifetime);
public ServiceDescriptor(Type serviceType, object? serviceKey, Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
new Microsoft.Extensions.DependencyInjection.ServiceDescriptor : Type * obj * Type * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Sub New (serviceType As Type, serviceKey As Object, implementationType As Type, lifetime As ServiceLifetime)

Parameters

serviceType
Type

De Type service.

serviceKey
Object

De ServiceKey service.

implementationType
Type

De Type implementatie van de service.

lifetime
ServiceLifetime

De ServiceLifetime service.

Van toepassing op