Click or drag to resize

AutofacWebApiDependencyResolverGetService 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 virtual Object GetService(
	Type serviceType
)

Parameters

serviceType
Type: SystemType
Type 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