Click or drag to resize

AutofacServiceLocatorDoGetInstance Method

Resolves the requested service instance.

Namespace:  Autofac.Extras.CommonServiceLocator
Assembly:  Autofac.Extras.CommonServiceLocator (in Autofac.Extras.CommonServiceLocator.dll) Version: 6.0.1+cbf7aec014129cc35f41fd7c7acb740dd2515df2
Syntax
protected override Object DoGetInstance(
	Type serviceType,
	string key
)

Parameters

serviceType
Type: SystemType
Type of instance requested.
key
Type: SystemString
Name of registered service you want. May be .

Return Value

Type: Object
The requested service instance.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if serviceType is .
See Also