Click or drag to resize

AutofacWebApiDependencyScopeGetService Method

Try to get a service of the given type.

Namespace:  Autofac.Integration.WebApi
Assembly:  Autofac.Integration.WebApi (in Autofac.Integration.WebApi.dll) Version: 6.0.0+03bf347ff3a78c2557675254b1a417eef4b464ec
Syntax
public Object GetService(
	Type serviceType
)

Parameters

serviceType
Type: SystemType
ControllerType of service to request.

Return Value

Type: Object
An instance of the service, or null if the service is not found.

Implements

IDependencyScope.GetService(Type)
See Also