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.