ITypeRegistrar Interface
Represents a type registrar.
public interface ITypeRegistrar
- Namespace
- Spectre
.Console .Cli - Implementing Types
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.
Extension Methods
-
T And
< I Type Registrar> (Action < I Type Registrar> ) - Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.