ServiceDescriptor Sınıf
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.
Bir hizmeti hizmet türü, uygulaması ve ömrüyle açıklar.
public ref class ServiceDescriptor
public class ServiceDescriptor
type ServiceDescriptor = class
Public Class ServiceDescriptor
- Devralma
-
ServiceDescriptor
Oluşturucular
| Name | Description |
|---|---|
| ServiceDescriptor(Type, Func<IServiceProvider,Object>, ServiceLifetime) |
Belirtilen ServiceDescriptorile yeni bir örneği |
| ServiceDescriptor(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime) |
Belirtilen ServiceDescriptorile yeni bir örneği |
| ServiceDescriptor(Type, Object, Object) |
olarak belirtilen |
| ServiceDescriptor(Type, Object, Type, ServiceLifetime) |
Belirtilen ServiceDescriptorile yeni bir örneği |
| ServiceDescriptor(Type, Object) |
olarak belirtilen |
| ServiceDescriptor(Type, Type, ServiceLifetime) |
Belirtilen ServiceDescriptorile yeni bir örneği |
Özellikler
| Name | Description |
|---|---|
| ImplementationFactory |
Hizmet örneği oluşturmak için kullanılan fabrikayı alır veya ise IsKeyedService |
| ImplementationInstance |
Hizmeti uygulayan örneği alır veya ise IsKeyedService |
| ImplementationType |
Type Hizmeti uygulayan öğesini alır veya ise IsKeyedService |
| IsKeyedService |
Hizmetin anahtarlı bir hizmet olup olmadığını gösterir. |
| KeyedImplementationFactory |
Anahtarlı hizmet örnekleri oluşturmak için kullanılan fabrikayı alır veya ise IsKeyedService |
| KeyedImplementationInstance |
Hizmeti uygulayan veya varsa IsKeyedService |
| KeyedImplementationType |
Type Hizmeti uygulayan veya varsa IsKeyedService |
| Lifetime |
ServiceLifetime Hizmetin durumunu alır. |
| ServiceKey |
Varsa hizmetin anahtarını alın. |
| ServiceType |
Type Hizmetin durumunu alır. |
Yöntemler
| Name | Description |
|---|---|
| Describe(Type, Func<IServiceProvider,Object>, ServiceLifetime) |
Belirtilen |
| Describe(Type, Type, ServiceLifetime) |
Belirtilen |
| DescribeKeyed(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime) |
Belirtilen |
| DescribeKeyed(Type, Object, Type, ServiceLifetime) |
Belirtilen |
| Equals(Object) |
Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler. (Devralındığı yer: Object) |
| GetHashCode() |
Varsayılan karma işlevi işlevi görür. (Devralındığı yer: Object) |
| GetType() |
Geçerli örneğin Type alır. (Devralındığı yer: Object) |
| KeyedScoped(Type, Object, Func<IServiceProvider,Object,Object>) |
Belirtilen |
| KeyedScoped(Type, Object, Type) |
belirtilen |
| KeyedScoped<TService,TImplementation>(Object, Func<IServiceProvider,Object,TImplementation>) |
Belirtilen |
| KeyedScoped<TService,TImplementation>(Object) |
Belirtilen |
| KeyedScoped<TService>(Object, Func<IServiceProvider,Object,TService>) |
Belirtilen |
| KeyedSingleton(Type, Object, Func<IServiceProvider,Object,Object>) |
Belirtilen |
| KeyedSingleton(Type, Object, Object) |
Belirtilen |
| KeyedSingleton(Type, Object, Type) |
belirtilen |
| KeyedSingleton<TService,TImplementation>(Object, Func<IServiceProvider,Object,TImplementation>) |
Belirtilen |
| KeyedSingleton<TService,TImplementation>(Object) |
Belirtilen |
| KeyedSingleton<TService>(Object, Func<IServiceProvider,Object,TService>) |
Belirtilen |
| KeyedSingleton<TService>(Object, TService) |
Belirtilen |
| KeyedTransient(Type, Object, Func<IServiceProvider,Object,Object>) |
Belirtilen |
| KeyedTransient(Type, Object, Type) |
belirtilen |
| KeyedTransient<TService,TImplementation>(Object, Func<IServiceProvider,Object,TImplementation>) |
Belirtilen |
| KeyedTransient<TService,TImplementation>(Object) |
Belirtilen |
| KeyedTransient<TService>(Object, Func<IServiceProvider,Object,TService>) |
Belirtilen |
| MemberwiseClone() |
Geçerli Objectbasit bir kopyasını oluşturur. (Devralındığı yer: Object) |
| Scoped(Type, Func<IServiceProvider,Object>) |
Belirtilen |
| Scoped(Type, Type) |
belirtilen |
| Scoped<TService,TImplementation>() |
Belirtilen |
| Scoped<TService,TImplementation>(Func<IServiceProvider,TImplementation>) |
Belirtilen |
| Scoped<TService>(Func<IServiceProvider,TService>) |
Belirtilen |
| Singleton(Type, Func<IServiceProvider,Object>) |
Belirtilen |
| Singleton(Type, Object) |
Belirtilen |
| Singleton(Type, Type) |
belirtilen |
| Singleton<TService,TImplementation>() |
Belirtilen |
| Singleton<TService,TImplementation>(Func<IServiceProvider,TImplementation>) |
Belirtilen |
| Singleton<TService>(Func<IServiceProvider,TService>) |
Belirtilen |
| Singleton<TService>(TService) |
Belirtilen |
| ToString() |
Geçerli nesneyi temsil eden bir dize döndürür. |
| Transient(Type, Func<IServiceProvider,Object>) |
Belirtilen |
| Transient(Type, Type) |
belirtilen |
| Transient<TService,TImplementation>() |
Belirtilen |
| Transient<TService,TImplementation>(Func<IServiceProvider,TImplementation>) |
Belirtilen |
| Transient<TService>(Func<IServiceProvider,TService>) |
Belirtilen |