ServiceDescriptor Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
ServiceDescriptor(Type, Object) |
Inicializa una nueva instancia de ServiceDescriptor con |
ServiceDescriptor(Type, Func<IServiceProvider,Object>, ServiceLifetime) |
Inicializa una nueva instancia de ServiceDescriptor con la interfaz |
ServiceDescriptor(Type, Object, Object) |
Inicializa una nueva instancia de ServiceDescriptor con |
ServiceDescriptor(Type, Type, ServiceLifetime) |
Inicializa una nueva instancia de ServiceDescriptor con la interfaz |
ServiceDescriptor(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime) |
Inicializa una nueva instancia de ServiceDescriptor con la interfaz |
ServiceDescriptor(Type, Object, Type, ServiceLifetime) |
Inicializa una nueva instancia de ServiceDescriptor con la interfaz |
ServiceDescriptor(Type, Object)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
Inicializa una nueva instancia de ServiceDescriptor con instance
especificado como 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)
Parámetros
- instance
- Object
La instancia que implementa el servicio.
Se aplica a
ServiceDescriptor(Type, Func<IServiceProvider,Object>, ServiceLifetime)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
Inicializa una nueva instancia de ServiceDescriptor con la interfaz factory
especificada.
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)
Parámetros
- factory
- Func<IServiceProvider,Object>
Un generador que se usa para crear instancias de servicio.
- lifetime
- ServiceLifetime
El ServiceLifetime del servicio.
Se aplica a
ServiceDescriptor(Type, Object, Object)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
Inicializa una nueva instancia de ServiceDescriptor con instance
especificado como 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)
Parámetros
- serviceKey
- Object
El ServiceKey del servicio.
- instance
- Object
La instancia que implementa el servicio.
Se aplica a
ServiceDescriptor(Type, Type, ServiceLifetime)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
Inicializa una nueva instancia de ServiceDescriptor con la interfaz implementationType
especificada.
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)
Parámetros
- lifetime
- ServiceLifetime
El ServiceLifetime del servicio.
Se aplica a
ServiceDescriptor(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
Inicializa una nueva instancia de ServiceDescriptor con la interfaz factory
especificada.
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)
Parámetros
- serviceKey
- Object
El ServiceKey del servicio.
- factory
- Func<IServiceProvider,Object,Object>
Un generador que se usa para crear instancias de servicio.
- lifetime
- ServiceLifetime
El ServiceLifetime del servicio.
Se aplica a
ServiceDescriptor(Type, Object, Type, ServiceLifetime)
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
- Source:
- ServiceDescriptor.cs
Inicializa una nueva instancia de ServiceDescriptor con la interfaz implementationType
especificada.
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)
Parámetros
- serviceKey
- Object
El ServiceKey del servicio.
- lifetime
- ServiceLifetime
El ServiceLifetime del servicio.