Can someone please explain the difference between
container.Register(AllTypes.FromAssemblyContaining(typeof(BigCompanyRepository))
.WithService.DefaultInterface()
and
container.Register(AllTypes.FromAssemblyContaining(typeof(BigCompanyRepository))
.WithService.AllInterfaces()
What is meant by a "default interface"?
It's a heuristic that looks for an implementation of an interface by removing the leading I
:
However, in my opinion, using this feature smells of an over-abundance of 1:1 interfaces.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With