ServiceDescriptor Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes a service with its service type, implementation, and lifetime.
public ref class ServiceDescriptor
public class ServiceDescriptor
type ServiceDescriptor = class
Public Class ServiceDescriptor
- Inheritance
-
ServiceDescriptor
Constructors
ServiceDescriptor(Type, Func<IServiceProvider,Object>, ServiceLifetime) |
Initializes a new instance of ServiceDescriptor with the specified |
ServiceDescriptor(Type, Object) |
Initializes a new instance of ServiceDescriptor with the specified |
ServiceDescriptor(Type, Type, ServiceLifetime) |
Initializes a new instance of ServiceDescriptor with the specified |
Properties
ImplementationFactory | |
ImplementationInstance | |
ImplementationType | |
Lifetime | |
ServiceType |
Methods
Describe(Type, Func<IServiceProvider,Object>, ServiceLifetime) |
Creates an instance of ServiceDescriptor with the specified
|
Describe(Type, Type, ServiceLifetime) |
Creates an instance of ServiceDescriptor with the specified
|
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Scoped(Type, Func<IServiceProvider,Object>) |
Creates an instance of ServiceDescriptor with the specified
|
Scoped(Type, Type) |
Creates an instance of ServiceDescriptor with the specified
|
Scoped<TService,TImplementation>() |
Creates an instance of ServiceDescriptor with the specified
|
Scoped<TService,TImplementation>(Func<IServiceProvider,TImplementation>) |
Creates an instance of ServiceDescriptor with the specified
|
Scoped<TService>(Func<IServiceProvider,TService>) |
Creates an instance of ServiceDescriptor with the specified
|
Singleton(Type, Func<IServiceProvider,Object>) |
Creates an instance of ServiceDescriptor with the specified
|
Singleton(Type, Object) |
Creates an instance of ServiceDescriptor with the specified
|
Singleton(Type, Type) |
Creates an instance of ServiceDescriptor with the specified
|
Singleton<TService,TImplementation>() |
Creates an instance of ServiceDescriptor with the specified
|
Singleton<TService,TImplementation>(Func<IServiceProvider,TImplementation>) |
Creates an instance of ServiceDescriptor with the specified
|
Singleton<TService>(Func<IServiceProvider,TService>) |
Creates an instance of ServiceDescriptor with the specified
|
Singleton<TService>(TService) |
Creates an instance of ServiceDescriptor with the specified
|
ToString() |
Returns a string that represents the current object. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Transient(Type, Func<IServiceProvider,Object>) |
Creates an instance of ServiceDescriptor with the specified
|
Transient(Type, Type) |
Creates an instance of ServiceDescriptor with the specified
|
Transient<TService,TImplementation>() |
Creates an instance of ServiceDescriptor with the specified
|
Transient<TService,TImplementation>(Func<IServiceProvider,TImplementation>) |
Creates an instance of ServiceDescriptor with the specified
|
Transient<TService>(Func<IServiceProvider,TService>) |
Creates an instance of ServiceDescriptor with the specified
|