ServiceDescriptor Costruttori

Definizione

Overload

ServiceDescriptor(Type, Object)

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto instance specificato come Singleton.

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

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto factory specificato.

ServiceDescriptor(Type, Object, Object)

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto instance specificato come Singleton.

ServiceDescriptor(Type, Type, ServiceLifetime)

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto implementationType specificato.

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

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto factory specificato.

ServiceDescriptor(Type, Object, Type, ServiceLifetime)

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto implementationType specificato.

ServiceDescriptor(Type, Object)

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

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto instance specificato come 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)

Parametri

serviceType
Type

Classe Type del servizio.

instance
Object

Istanza che implementa il servizio.

Si applica a

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

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

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto factory specificato.

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)

Parametri

serviceType
Type

Classe Type del servizio.

factory
Func<IServiceProvider,Object>

Factory usata per la creazione di istanze del servizio.

lifetime
ServiceLifetime

Classe ServiceLifetime del servizio.

Si applica a

ServiceDescriptor(Type, Object, Object)

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

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto instance specificato come 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)

Parametri

serviceType
Type

Classe Type del servizio.

serviceKey
Object

Classe ServiceKey del servizio.

instance
Object

Istanza che implementa il servizio.

Si applica a

ServiceDescriptor(Type, Type, ServiceLifetime)

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

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto implementationType specificato.

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)

Parametri

serviceType
Type

Classe Type del servizio.

implementationType
Type

Oggetto Type che implementa il servizio.

lifetime
ServiceLifetime

Classe ServiceLifetime del servizio.

Si applica a

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

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

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto factory specificato.

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)

Parametri

serviceType
Type

Classe Type del servizio.

serviceKey
Object

Classe ServiceKey del servizio.

factory
Func<IServiceProvider,Object,Object>

Factory usata per la creazione di istanze del servizio.

lifetime
ServiceLifetime

Classe ServiceLifetime del servizio.

Si applica a

ServiceDescriptor(Type, Object, Type, ServiceLifetime)

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

Inizializza una nuova istanza di ServiceDescriptor con l'oggetto implementationType specificato.

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)

Parametri

serviceType
Type

Classe Type del servizio.

serviceKey
Object

Classe ServiceKey del servizio.

implementationType
Type

Oggetto Type che implementa il servizio.

lifetime
ServiceLifetime

Classe ServiceLifetime del servizio.

Si applica a