registerSimple<TService> method
void
registerSimple<TService>(
- Constructor<
TService> constructor, [ - Lifestyle lifestyle = Lifestyle.transient
Registers a constructor for type TService
. This constructor must be
specified in constructor
and must generate an instance of TService
.
Default value of lifestyle
is Lifestyle.transient.
Implementation
void registerSimple<TService>(Constructor<TService> constructor,
[Lifestyle lifestyle = Lifestyle.transient]) =>
register<TService, TService>(constructor, lifestyle);