ServiceDescriptor Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
ServiceDescriptor(Type, Object) |
Inicializuje novou instanci ServiceDescriptor s parametrem zadaným |
ServiceDescriptor(Type, Func<IServiceProvider,Object>, ServiceLifetime) |
Inicializuje novou instanci objektu ServiceDescriptor se zadaným |
ServiceDescriptor(Type, Object, Object) |
Inicializuje novou instanci ServiceDescriptor s parametrem zadaným |
ServiceDescriptor(Type, Type, ServiceLifetime) |
Inicializuje novou instanci objektu ServiceDescriptor se zadaným |
ServiceDescriptor(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime) |
Inicializuje novou instanci objektu ServiceDescriptor se zadaným |
ServiceDescriptor(Type, Object, Type, ServiceLifetime) |
Inicializuje novou instanci objektu ServiceDescriptor se zadaným |
ServiceDescriptor(Type, Object)
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
Inicializuje novou instanci ServiceDescriptor s parametrem zadaným instance
Singletonjako .
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)
Parametry
- instance
- Object
Instance implementuje službu.
Platí pro
ServiceDescriptor(Type, Func<IServiceProvider,Object>, ServiceLifetime)
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
Inicializuje novou instanci objektu ServiceDescriptor se zadaným factory
parametrem .
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)
Parametry
- factory
- Func<IServiceProvider,Object>
Objekt pro vytváření instancí služby.
- lifetime
- ServiceLifetime
Služby ServiceLifetime .
Platí pro
ServiceDescriptor(Type, Object, Object)
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
Inicializuje novou instanci ServiceDescriptor s parametrem zadaným instance
Singletonjako .
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)
Parametry
- serviceKey
- Object
Služby ServiceKey .
- instance
- Object
Instance implementuje službu.
Platí pro
ServiceDescriptor(Type, Type, ServiceLifetime)
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
Inicializuje novou instanci objektu ServiceDescriptor se zadaným implementationType
parametrem .
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)
Parametry
- lifetime
- ServiceLifetime
Služby ServiceLifetime .
Platí pro
ServiceDescriptor(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime)
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
Inicializuje novou instanci objektu ServiceDescriptor se zadaným factory
parametrem .
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)
Parametry
- serviceKey
- Object
Služby ServiceKey .
- factory
- Func<IServiceProvider,Object,Object>
Objekt pro vytváření instancí služby.
- lifetime
- ServiceLifetime
Služby ServiceLifetime .
Platí pro
ServiceDescriptor(Type, Object, Type, ServiceLifetime)
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
- Zdroj:
- ServiceDescriptor.cs
Inicializuje novou instanci objektu ServiceDescriptor se zadaným implementationType
parametrem .
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)
Parametry
- serviceKey
- Object
Služby ServiceKey .
- lifetime
- ServiceLifetime
Služby ServiceLifetime .