-
Website
http://kohari.org/ -
Original page
http://new.kohari.org/2009/02/25/ninject-2-reaches-beta/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Daniel Ha
1 comment · 405 points
-
Matthias Marschall
1 comment · 1 points
-
fallenrogue
2 comments · 2 points
-
nkohari
4 comments · 3 points
-
-
Popular Threads
Amazing stuff! keep it up
but without field injection there is no way to inject properties into object created by someone else.
Am using it now without issue, bar the implicit ASP.NET MVC controller binding issue I tweeted about - it feels beautifully light, a floating piece of elegance.
Well done!
Thanks for your work.
I thought you were removing Property injection...
sorry for the confusion
Other then that, all the changes you've made sound awesome and I can't wait to try it out, and also take a look at the source to see how you accomplished it.
Thanks for a great IoC.
Adam
Or, is it because of your lack of time it's not there, or is it because it would be hard to add to Ninject2?
Thanks for the Common Service Locator support!
IoC should be used to make projects more maintainable (readable). Someone new to a project might have a hard time figuring out where that dependency comes from. When you have a property it's instantly clear that the dependency is assigned.
Devvers who don't want that other components (if the class itself ins injected into other parts of the application) use the injected classes should use setter-only properties or a method marked with the Inject attribute.
And besides that. Don't you think you also have a moral tasks to prevent users of Ninject to make stupid decisions like using field injection ;-)
Any plans to include WCF extensions (i.e. ServiceHost and behavior capable of DI) with Ninject 2?
You've a great library here. Looking forward to taking a look at Ninject2.
Thanks for the effort so that we may benefit.
Pete
I'll have to bail on using it, as I need to get some work done.
But will come back to it and see if I can help figure it out.
What's your reasoning for changing this behaviour? It seems to me to cause problems since several implementations of IMyInterface may have completely different constructor parameters.
Is there a way to change it back to the original behaviour of using the Default Constructor if no [Inject] attribute is applied?
We chose Ninject because of its .NET CF support. We love it, but really need the multi-injection support. Please keep CF support as the valuable feature it is.
Thanks,
Eric
Eric
As others stated, I'd be glad if CF support would stay in. The reason is, that our company has a lot of "normal" .net projects as well as CF projects, and we like to be able to reuse our stuff and therefore the injection container.
Keep up the great work
Cheers
Urs