ScopedServiceLocator

constructor(scope: S, allowReregister: Boolean = false)

Parameters

S

The type of the scope identifier.

scope

The specific scope instance for this locator.

allowReregister

if true, allow registering keys multiple times. The latest registration will be used. This should generally only be true for tests.