dotnetspider.com
Login Login    Register      

TutorialsForumCareer DevelopmentResourcesReviewsJobsInterviewCommunitiesProjectsTraining

Subscribe to Subscribers
Talk to Webmaster
Tony John

Facebook
Google+
Twitter
LinkedIn
Online MembersKavery
murugesan
NIRVANA
Jivani
Phagu Mahato
Ankit sharma
More...
Join our online Google+ community for Bloggers, Content Writers and Webmasters




Resources » Tools and Utilities » ASP.NET

Ninject - Open Source Dependency Injector for .Net


Posted Date:     Category: ASP.NET    
Author: Member Level: Gold    Points: 4


Ninject is a lightweight dependency injection framework for .NET applications. It is one of the several Inversion od Control(loc) containers available for .Net. It helps us to split our application into a collection of loosely-coupled,highly cohesive pieces and then glue them back together in a flexible manner. It makes our code easier to write, reuse, test and modify.



 


Why use Ninject


It uses a fluent interface to declare type bindings whereas the other frameworks rely on XML configuration files. It is a lightweight framework and aims to keep things simple and straightforward. It uses an extremely flexible form of binding called contextual binding.


How Ninject works




  • Ninject uses a central object to provide concrete implementations of dependencies at runtime.

  • Repeating calls via reflection as in dependency injection by hand can be very slow.Ninject takes advantage of the light weight code generation system firstintroduce in version 2.0 of the CLR.

  • By default, the Standard Kernel will create dynamic methods that can be used to inject values into the different injection targets. These dynamic methods are then triggered via delegate calls



Ninject Setup


Ninject is a pre-built dll which is available for download from github and have to reference Ninject.dll in your project.






Did you like this resource? Share it with your friends and show your love!


Responses to "Ninject - Open Source Dependency Injector for .Net"

No responses found. Be the first to respond...

Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Next Resource: KUpload+ asp.net file upload component
    Previous Resource: Windows Service for taking screenshots
    Return to Resources
    Post New Resource
    Category: ASP.NET


    Post resources and earn money!
     
    More Resources
    Popular Tags   Tag posting guidelines   Search Tags  
    Ninject  .  



    Follow us on Twitter: https://twitter.com/dotnetspider

    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Email subscription
  • .NET Jobs
  • .NET Articles
  • .NET Forums
  • Articles Rss Feeds
    Forum Rss Feeds


    About Us    Contact Us    Copyright    Privacy Policy    Terms Of Use    Revenue Sharing sites   Advertise   Talk to Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.