ScopeGetInstance Method (Type)

Simple Injector
Gets an instance of the given serviceType for the current scope.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

public Object GetInstance(
	Type serviceType
)

Parameters

serviceType
Type: SystemType
The type of the service to resolve.

Return Value

Type: Object
An instance of the given service type.
Remarks

Thread safety: Calls to this method are thread safe.
See Also

Reference