LifetimeScopeGetService Method |
Gets the service object of the specified type.
Namespace:
Autofac.Core.Lifetime
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax public Object GetService(
Type serviceType
)
Public Function GetService (
serviceType As Type
) As Object
Parameters
- serviceType
- Type: SystemType
An object that specifies the type of service object
to get.
Return Value
Type:
Object
A service object of type
serviceType.-or- null if there is
no service object of type
serviceType.
Implements
IServiceProviderGetService(Type)See Also