ITypeRegistrar Interface
Represents a type registrar.
public interface ITypeRegistrar
- Namespace
- Spectre
.Console .Cli
Methods
-
abstract ITypeResolver Build
() - Builds the type resolver representing the registrations specified in the current instance.
-
abstract void Register
(Type, Type) - Registers the specified service.
-
abstract void RegisterInstance
(Type, object) - Registers the specified instance.
-
abstract void RegisterLazy
(Type, Func <object> ) - Registers the specified instance lazily.