Is it ok to register components in Windsor without specifying an interface?
问题 Is it considered bad form to register components in Windsor without specifying an interface? i.e. container.Register(Component.For<MyClass>().LifeStyle.Transient); as opposed to... container.Register(Component.For<IMyClass>().ImplementedBy<MyClass>().LifeStyle.Transient); I understand the benefits of coding to an interface rather than a concrete implementation however we are finding that we now have lots of interfaces many of them are on classes that realistically will only ever have one