AutoActivationExtensions.AddActivatedSingleton Yöntem
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
AddActivatedSingleton(IServiceCollection, Type) |
serviceType içinde belirtilen türde otomatik olarak etkinleştirilmiş bir tekil hizmeti belirtilen IServiceCollectionöğesine ekler. |
AddActivatedSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>) |
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler. |
AddActivatedSingleton(IServiceCollection, Type, Type) |
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler. |
AddActivatedSingleton<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>) |
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler. |
AddActivatedSingleton<TService,TImplementation>(IServiceCollection) |
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler. |
AddActivatedSingleton<TService>(IServiceCollection) |
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler. |
AddActivatedSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>) |
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler. |
AddActivatedSingleton(IServiceCollection, Type)
- Kaynak:
- AutoActivationExtensions.cs
- Kaynak:
- AutoActivationExtensions.cs
serviceType içinde belirtilen türde otomatik olarak etkinleştirilmiş bir tekil hizmeti belirtilen IServiceCollectionöğesine ekler.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddActivatedSingleton(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Type ^ serviceType);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddActivatedSingleton (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Type serviceType);
static member AddActivatedSingleton : Microsoft.Extensions.DependencyInjection.IServiceCollection * Type -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddActivatedSingleton (services As IServiceCollection, serviceType As Type) As IServiceCollection
Parametreler
- services
- IServiceCollection
Hizmetin ekleneceği hizmet koleksiyonu.
- serviceType
- Type
Kaydedilecek hizmetin türü ve kullanılacak uygulama.
Döndürülenler
değeri services
.
Şunlara uygulanır
AddActivatedSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)
- Kaynak:
- AutoActivationExtensions.cs
- Kaynak:
- AutoActivationExtensions.cs
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddActivatedSingleton(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Type ^ serviceType, Func<IServiceProvider ^, System::Object ^> ^ implementationFactory);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddActivatedSingleton (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Type serviceType, Func<IServiceProvider,object> implementationFactory);
static member AddActivatedSingleton : Microsoft.Extensions.DependencyInjection.IServiceCollection * Type * Func<IServiceProvider, obj> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddActivatedSingleton (services As IServiceCollection, serviceType As Type, implementationFactory As Func(Of IServiceProvider, Object)) As IServiceCollection
Parametreler
- services
- IServiceCollection
Hizmetin ekleneceği hizmet koleksiyonu.
- serviceType
- Type
Kaydedilecek hizmetin türü.
- implementationFactory
- Func<IServiceProvider,Object>
Hizmeti oluşturan fabrika.
Döndürülenler
değeri services
.
Şunlara uygulanır
AddActivatedSingleton(IServiceCollection, Type, Type)
- Kaynak:
- AutoActivationExtensions.cs
- Kaynak:
- AutoActivationExtensions.cs
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddActivatedSingleton(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Type ^ serviceType, Type ^ implementationType);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddActivatedSingleton (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Type serviceType, Type implementationType);
static member AddActivatedSingleton : Microsoft.Extensions.DependencyInjection.IServiceCollection * Type * Type -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddActivatedSingleton (services As IServiceCollection, serviceType As Type, implementationType As Type) As IServiceCollection
Parametreler
- services
- IServiceCollection
Hizmetin ekleneceği hizmet koleksiyonu.
- serviceType
- Type
Kaydedilecek hizmetin türü.
- implementationType
- Type
Hizmetin uygulama türü.
Döndürülenler
değeri services
.
Şunlara uygulanır
AddActivatedSingleton<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)
- Kaynak:
- AutoActivationExtensions.cs
- Kaynak:
- AutoActivationExtensions.cs
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler.
public:
generic <typename TService, typename TImplementation>
where TService : class where TImplementation : class, TService[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddActivatedSingleton(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Func<IServiceProvider ^, TImplementation> ^ implementationFactory);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddActivatedSingleton<TService,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Func<IServiceProvider,TImplementation> implementationFactory) where TService : class where TImplementation : class, TService;
static member AddActivatedSingleton : Microsoft.Extensions.DependencyInjection.IServiceCollection * Func<IServiceProvider, #'Service> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Service : null)
<Extension()>
Public Function AddActivatedSingleton(Of TService As Class, TImplementation As Class) (services As IServiceCollection, implementationFactory As Func(Of IServiceProvider, TImplementation)) As IServiceCollection
Tür Parametreleri
- TService
Eklenecek hizmetin türü.
- TImplementation
Kullanılacak uygulamanın türü.
Parametreler
- services
- IServiceCollection
Hizmetin ekleneceği hizmet koleksiyonu.
- implementationFactory
- Func<IServiceProvider,TImplementation>
Hizmeti oluşturan fabrika.
Döndürülenler
değeri services
.
Şunlara uygulanır
AddActivatedSingleton<TService,TImplementation>(IServiceCollection)
- Kaynak:
- AutoActivationExtensions.cs
- Kaynak:
- AutoActivationExtensions.cs
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler.
public:
generic <typename TService, typename TImplementation>
where TService : class where TImplementation : class, TService[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddActivatedSingleton(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddActivatedSingleton<TService,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TService : class where TImplementation : class, TService;
static member AddActivatedSingleton : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Service : null)
<Extension()>
Public Function AddActivatedSingleton(Of TService As Class, TImplementation As Class) (services As IServiceCollection) As IServiceCollection
Tür Parametreleri
- TService
Eklenecek hizmetin türü.
- TImplementation
Kullanılacak uygulamanın türü.
Parametreler
- services
- IServiceCollection
Hizmetin ekleneceği hizmet koleksiyonu.
Döndürülenler
değeri services
.
Şunlara uygulanır
AddActivatedSingleton<TService>(IServiceCollection)
- Kaynak:
- AutoActivationExtensions.cs
- Kaynak:
- AutoActivationExtensions.cs
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler.
public:
generic <typename TService>
where TService : class[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddActivatedSingleton(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddActivatedSingleton<TService> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TService : class;
static member AddActivatedSingleton : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Service : null)
<Extension()>
Public Function AddActivatedSingleton(Of TService As Class) (services As IServiceCollection) As IServiceCollection
Tür Parametreleri
- TService
Eklenecek hizmetin türü.
Parametreler
- services
- IServiceCollection
Hizmetin ekleneceği hizmet koleksiyonu.
Döndürülenler
değeri services
.
Şunlara uygulanır
AddActivatedSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)
- Kaynak:
- AutoActivationExtensions.cs
- Kaynak:
- AutoActivationExtensions.cs
Otomatik olarak etkinleştirilmiş bir tekil hizmet ekler.
public:
generic <typename TService>
where TService : class[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddActivatedSingleton(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Func<IServiceProvider ^, TService> ^ implementationFactory);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddActivatedSingleton<TService> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Func<IServiceProvider,TService> implementationFactory) where TService : class;
static member AddActivatedSingleton : Microsoft.Extensions.DependencyInjection.IServiceCollection * Func<IServiceProvider, 'Service (requires 'Service : null)> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Service : null)
<Extension()>
Public Function AddActivatedSingleton(Of TService As Class) (services As IServiceCollection, implementationFactory As Func(Of IServiceProvider, TService)) As IServiceCollection
Tür Parametreleri
- TService
Eklenecek hizmetin türü.
Parametreler
- services
- IServiceCollection
Hizmetin ekleneceği hizmet koleksiyonu.
- implementationFactory
- Func<IServiceProvider,TService>
Hizmeti oluşturan fabrika.
Döndürülenler
değeri services
.