nInject: Bind all interfaces in Assembly
To bind all interfaces in assembly using nInject.
Kernel.Bind(x => x.FromAssembliesMatching("dll name")
.SelectAllClasses()
.BindAllInterfaces()
http://pragmaticparag.blogspot.co.uk/2012/09/ninject-snippets.html
Written by Parag Yerawar
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Assembly
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#