AutofacDependencyResolverGetService Method |
Get a single instance of a service.
Namespace:
Autofac.Integration.Mvc
Assembly:
Autofac.Integration.Mvc (in Autofac.Integration.Mvc.dll) Version: 6.0.0+106fe194fc419c09f32d39119967f68798cc6895
Syntax public virtual Object GetService(
Type serviceType
)
Public Overridable Function GetService (
serviceType As Type
) As Object
Parameters
- serviceType
- Type: SystemType
Type of the service.
Return Value
Type:
ObjectThe single instance if resolved; otherwise,
null.
Implements
IDependencyResolver.GetService(Type)See Also