Click or drag to resize

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
)

Parameters

serviceType
Type: SystemType
Type of the service.

Return Value

Type: Object
The single instance if resolved; otherwise, null.

Implements

IDependencyResolver.GetService(Type)
See Also