RegisterLazy(Type, Func<object>) Method
Registers the specified instance lazily.
void RegisterLazy(Type service, Func<object> factory)
- Namespace
- Spectre
.Console .Cli - Containing Type
- ITypeRegistrar
Parameters
- Type service
- The service.
-
Func
<object> factory - The factory that creates the implementation.