IServiceLocatorTryResolve 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 TryResolve(
	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 ativated service, if one has been registered for the specified identity; otherwise null.
Remarks
Returns the default service if no serviceName is specified.
See Also