Click or drag to resize

ServiceLocatorRegisterTransientT Method (FuncT)

Registers a concrete transient type to return new instances of when T 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
C#
public static void RegisterTransient<T>(
	Func<T> factory
)
Request Example View Source

Parameters

factory
Type: SystemFuncT
The factory that will be used for creating instances.

Type Parameters

T
The concrete transient type to register.
See Also