Cargando…

Mastering Ninject for Dependency Injection.

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...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Baharestani, Daniel
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Packt Publishing, 2013.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 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; Chapter 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 assembliesSelecting the components; Filtering the selected components; Explicit inclusion and exclusion; Selecting service types; Configuring the Bindings; Summary; Chapter 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; The Factory Method; Dynamic factories.
  • The Shape Factory exampleUsing convention; Selecting service types; Defining Binding Generator; Telecom Switch example; Custom Instance Providers; Func; Lazy; Summary; Chapter 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; Chapter 5: Doing More with Extensions; Interception; Setup Interception; Member Interception; Type Interception; Multiple Interceptors; InterceptAttribute.
  • Mocking KernelExtending Ninject; Summary; Index.