| ServiceLocatorRegisterTransientForSceneTAbstract, TConcrete Method (FuncTConcrete, Scene) |
Registers a scene-specific concrete transient type to return new instances of when the abstract type
TAbstract is resolved.
The specified resolver will be used for producing the instances.
Namespace:
Archon.SwissArmyLib.Utils
Assembly:
Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static void RegisterTransientForScene<TAbstract, TConcrete>(
Func<TConcrete> factory,
Scene scene
)
where TConcrete : TAbstract
Request Example
View SourceParameters
- factory
- Type: SystemFuncTConcrete
The factory that will be used for creating instances. - scene
- Type: Scene
The scene to register the transient type for.
Type Parameters
- TAbstract
- The abstract type that will be mapped to TConcrete.
- TConcrete
- The concrete transient type to return when TAbstract is resolved.
See Also