Gets the service object of the specified type.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
Parameters
- serviceType
- Type: SystemType
An object that specifies the type of service object to get.
Return Value
Type: ObjectA service object of type serviceType -or- null if there is no service object of type serviceType.
Implements
IServiceProviderGetService(Type)See Also