IServiceLocatorResolve Method (Type, String)

Resolves a service of type serviceType with the specified serviceName.

Namespace: InjectMe
Assembly: InjectMe (in InjectMe.dll) Version: 0.9.17.21 (0.9.17.21)
Syntax
Object Resolve(
	Type serviceType,
	string serviceName = null
)

Parameters

serviceType
Type: SystemType
The type of service to resolve.
serviceName (Optional)
Type: SystemString
The name of the service to resolve.

Return Value

Type: Object
An activated service.
Exceptions
ExceptionCondition
ServiceNotRegisteredException No service of the requested identity has been registered in the container.
Remarks
Returns the default service if no serviceName is specified.
See Also