No it is not difficult. I just never gave this a high enough priority to appear on the top of the todo list because this is not really an issue when using conventions.
Am 10.05.2012 um 21:03 schrieb "Jarrett Meyer" <jarrettme...@gmail.com<mailto:jarrettme...@gmail.com>>:
Would that be very difficult to do? <https://github.com/ninject/ninject/pull/55> https://github.com/ninject/ninject/pull/55 My solution is a bit of a hack, but it looks like it would work.
--
Jarrett Meyer
Email: <mailto:jarrettme...@gmail.com> jarrettme...@gmail.com<mailto:jarrettme...@gmail.com>
Web: <http://jarrettmeyer.com> JarrettMeyer.com<http://JarrettMeyer.com>
Twitter: @jarrettmeyer<http://twitter.com/jarrettmeyer>
On Thu, May 10, 2012 at 1:58 PM, Remo Gloor <<mailto:remo.gl...@bbv.ch>remo.gl...@bbv.ch<mailto:remo.gl...@bbv.ch>> wrote:
You can't! But you can use conventions to reduce the configuration.
Am 10.05.2012 um 19:55 schrieb "Brian Beard" <<mailto:brian.be...@onspring.com>brian.be...@onspring.com<mailto:brian.be...@onspring.com>>:
I am currently using Ninject 3 in an ASP MVC application. What is the best way for me to setup the kernel so that the default scope is the Request scope? Currently I'm having to setup all my bindings similar to the following:
.
kernel.Bind<IRepository>().To<SqlRepository>().InRequestScope();
--
You received this message because you are subscribed to the Google Groups "ninject" group.
To view this discussion on the web visit <https://groups.google.com/d/msg/ninject/-/n4cOtB6HOFcJ> https://groups.google.com/d/msg/ninject/-/n4cOtB6HOFcJ.
To post to this group, send email to <mailto:ninject@googlegroups.com> ninject@googlegroups.com<mailto:ninject@googlegroups.com>.
To unsubscribe from this group, send email to <mailto:ninject+unsubscribe@googlegroups.com> ninject+unsubscribe@googlegroups.com<mailto:ninject+unsubscribe@googlegroup s.com>.
For more options, visit this group at <http://groups.google.com/group/ninject?hl=en> http://groups.google.com/group/ninject?hl=en.
--
You received this message because you are subscribed to the Google Groups "ninject" group.
To post to this group, send email to <mailto:ninject@googlegroups.com> ninject@googlegroups.com<mailto:ninject@googlegroups.com>.
To unsubscribe from this group, send email to <mailto:ninject%2Bunsubscribe@googlegroups.com> ninject+unsubscribe@googlegroups.com<mailto:ninject+unsubscribe@googlegroup s.com>.
For more options, visit this group at <http://groups.google.com/group/ninject?hl=en> http://groups.google.com/group/ninject?hl=en.
--
You received this message because you are subscribed to the Google Groups "ninject" group.
To post to this group, send email to ninject@googlegroups.com<mailto:ninject@googlegroups.com>.
To unsubscribe from this group, send email to ninject+unsubscribe@googlegroups.com<mailto:ninject+unsubscribe@googlegroup s.com>.
For more options, visit this group at http://groups.google.com/group/ninject?hl=en.