ITypeRegistrarFrontend Interface
Represents a user friendly frontend for a
ITypeRegistrar
.
public interface ITypeRegistrarFrontend
- Namespace
- Spectre
.Console .Cli
Methods
-
abstract void Register
<TService, TImplementation> () - Registers the type with the type registrar as a singleton.
-
abstract void RegisterInstance
< T Implementation> (TImplementation) - Registers the specified instance with the type registrar as a singleton.
-
abstract void RegisterInstance
<TService, TImplementation> (TImplementation) - Registers the specified instance with the type registrar as a singleton.
Extension Methods
-
T And
< I Type Registrar Frontend> (Action < I Type Registrar Frontend> ) - 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.