ScopeGetInstance Method (Type)

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

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 4.4.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.
See Also

Reference