Click or drag to resize

AutofacServiceProviderGetService Method

Gets the service object of the specified type.

Namespace:  Autofac.Extensions.DependencyInjection
Assembly:  Autofac.Extensions.DependencyInjection (in Autofac.Extensions.DependencyInjection.dll) Version: 7.1.0+380b08798bf724f36e200e687129b44a0778ab92
Syntax
public Object GetService(
	Type serviceType
)

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 if there is no service object of type serviceType.

Implements

IServiceProviderGetService(Type)
See Also