Constructor ServiceDescriptor
ServiceDescriptor(Type, Type, ServiceLifetime)
Creates a new instance of ServiceDescriptor.
Declaration
public ServiceDescriptor(Type serviceType, Type implementationType, ServiceLifetime lifetime)
Parameters
Type | Name | Description |
---|---|---|
Type | serviceType | The service type. |
Type | implementationType | The implementation type. |
ServiceLifetime | lifetime | The lifetime of the service. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |