RegisterInstance<TService, TImplementation>(TImplementation) Method
Registers the specified instance with the type registrar as a singleton.
void RegisterInstance<TService, TImplementation>(TImplementation instance)
where TImplementation : TService
- Namespace
- Spectre
.Console .Cli - Containing Type
- I
Type Registrar Frontend
Parameters
-
TService
- The exposed service type.
-
TImplementation
- implementing type.
Parameters
- TImplementation instance
- The instance to register.