| ServiceLocatorRegisterSingletonTAbstract, TConcrete Method (TConcrete) |
Registers a specific instance to be a singleton for the abstract type.
Namespace:
Archon.SwissArmyLib.Utils
Assembly:
Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static void RegisterSingleton<TAbstract, TConcrete>(
TConcrete instance
)
Request Example
View SourceParameters
- instance
- Type: TConcrete
The instance to register as a singleton.
Type Parameters
- TAbstract
- The abstract ype that will be mapped to TConcrete.
- TConcrete
- The concrete singleton implementation.
See Also