ServiceDescriptor Oluşturucular
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
ServiceDescriptor(Type, Object) |
olarak belirtilen |
ServiceDescriptor(Type, Func<IServiceProvider,Object>, ServiceLifetime) |
Belirtilen |
ServiceDescriptor(Type, Object, Object) |
olarak belirtilen |
ServiceDescriptor(Type, Type, ServiceLifetime) |
Belirtilen |
ServiceDescriptor(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime) |
Belirtilen |
ServiceDescriptor(Type, Object, Type, ServiceLifetime) |
Belirtilen |
ServiceDescriptor(Type, Object)
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
olarak belirtilen instance
ile yeni bir Singletonörneğini ServiceDescriptor başlatır.
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)
Parametreler
- instance
- Object
Hizmeti uygulayan örnek.
Şunlara uygulanır
ServiceDescriptor(Type, Func<IServiceProvider,Object>, ServiceLifetime)
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
Belirtilen factory
ile yeni bir örneğini ServiceDescriptor başlatır.
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)
Parametreler
- factory
- Func<IServiceProvider,Object>
Hizmet örnekleri oluşturmak için kullanılan fabrika.
- lifetime
- ServiceLifetime
Hizmetin ServiceLifetime .
Şunlara uygulanır
ServiceDescriptor(Type, Object, Object)
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
olarak belirtilen instance
ile yeni bir Singletonörneğini ServiceDescriptor başlatır.
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)
Parametreler
- serviceKey
- Object
Hizmetin ServiceKey .
- instance
- Object
Hizmeti uygulayan örnek.
Şunlara uygulanır
ServiceDescriptor(Type, Type, ServiceLifetime)
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
Belirtilen implementationType
ile yeni bir örneğini ServiceDescriptor başlatır.
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)
Parametreler
- lifetime
- ServiceLifetime
Hizmetin ServiceLifetime .
Şunlara uygulanır
ServiceDescriptor(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime)
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
Belirtilen factory
ile yeni bir örneğini ServiceDescriptor başlatır.
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)
Parametreler
- serviceKey
- Object
Hizmetin ServiceKey .
- factory
- Func<IServiceProvider,Object,Object>
Hizmet örnekleri oluşturmak için kullanılan fabrika.
- lifetime
- ServiceLifetime
Hizmetin ServiceLifetime .
Şunlara uygulanır
ServiceDescriptor(Type, Object, Type, ServiceLifetime)
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
- Kaynak:
- ServiceDescriptor.cs
Belirtilen implementationType
ile yeni bir örneğini ServiceDescriptor başlatır.
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)
Parametreler
- serviceKey
- Object
Hizmetin ServiceKey .
- lifetime
- ServiceLifetime
Hizmetin ServiceLifetime .