
Mastering Ninject for Dependency Injection.
Title:
Mastering Ninject for Dependency Injection.
Author:
Baharestani, Daniel.
ISBN:
9781782166214
Personal Author:
Physical Description:
1 online resource (155 pages)
Contents:
Mastering Ninject for Dependency Injection -- Table of Contents -- Mastering Ninject for Dependency Injection -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Understanding Dependency Injection -- What is Dependency Injection? -- DI or Inversion of Control (IoC) -- How can DI help? -- My First DI Application -- DI Containers -- Why use Ninject? -- Summary -- 2. Getting Started with Ninject -- Hello Ninject! -- It's all about Binding -- Object Lifetime -- Transient scope -- Singleton scope -- Thread scope -- Request scope -- Custom scope -- Ninject modules -- XML configuration -- How to use XML configuration -- Convention over configuration -- Selecting the assemblies -- Selecting the components -- Filtering the selected components -- Explicit inclusion and exclusion -- Selecting service types -- Configuring the Bindings -- Summary -- 3. Meeting Real-world Requirements -- DI patterns and antipatterns -- Constructor Injection -- Initializer methods and properties -- Service Locator -- Multi binding and contextual binding -- Implementing the plugin model -- Contextual binding -- Named binding -- Resolving metadata -- Attribute-based binding -- Target-based conditions -- Generic helper -- Custom providers -- Activation context -- Factory Methods -- Dynamic factories -- The Shape Factory example -- Using convention -- Selecting service types -- Defining Binding Generator -- Telecom Switch example -- Custom Instance Providers -- Func -- Lazy -- Summary -- 4. Ninject in Action -- Windows Forms applications.
WPF and Silverlight applications -- ASP.NET MVC applications -- Validator injection -- Filter injection -- Conditional filtering (When) -- Contextual arguments (With) -- WCF applications -- ASP.NET Web Forms applications -- Summary -- 5. Doing More with Extensions -- Interception -- Setup Interception -- Member Interception -- Type Interception -- Multiple Interceptors -- Intercept Attribute -- Mocking Kernel -- Extending Ninject -- Summary -- Index.
Abstract:
Mastering Ninject for Dependency Injection teaches you the most powerful concepts of Ninject in a simple and easy-to-understand format using lots of practical examples, diagrams, and illustrations.Mastering Ninject for Dependency Injection is aimed at software developers and architects who wish to create maintainable, extensible, testable, and loosely coupled applications. Since Ninject targets the .NET platform, this book is not suitable for software developers of other platforms. Being familiar with design patterns such as singleton or factory would be beneficial, but no knowledge of dependency injection or IoC is assumed.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Genre:
Electronic Access:
Click to View