My Account Log in

4 options

Mastering ninject for dependency Injection : learn how ninject facilitates the implementation of dependency injection to solve common design problems of real-life applications / Daniel Baharestani ; cover image by Daniel Baharestani and Sheetal Aute.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central Academic Complete Available online

View online

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Baharestani, Daniel.
Contributor:
Baharestani, Daniel.
Sawant, Aniket.
Series:
Community experience distilled
Language:
English
Subjects (All):
Internet programming.
Application software--Development.
Application software.
Physical Description:
1 online resource (142 p.)
Edition:
1st edition
Place of Publication:
Birmingham, England : Packt Publishing, 2013.
Language Note:
English
System Details:
text file
Biography/History:
Baharestani Daniel: Daniel Baharestani is an experienced IT professional living in Australia. He has over 10 years of professional experience in design and development of enterprise applications, mostly focused on Microsoft technologies and holds a B. Sc in software engineering. Daniel is currently working at 3P Learning, which is a global leader in online learning with its flagship platform, Mathleticsused by more than 4 million students worldwide. For further details you can visit his website at http: //baharestani. com.
Summary:
For .NET developers and architects, this is the ultimate guide to the principles of Dependency Injection and how to use the automating features of Ninject in the most effective way. Packed with examples, diagrams, and illustrations. Create loosely coupled applications by implementing dependency injection using Ninject Learn how to design an enterprise application so as to maximize its maintainability, extensibility and testability Automate the process of dealing with the dependencies of your application and object lifetimes Address the cross-cutting concerns of your applications in the easiest way Full of real-life, step-by-step examples and clear code samples In Detail Dependency injection is an approach to creating loosely coupled applications. Maintainability, testability, and extensibility are just a few advantages of loose coupling. Ninject is a software library which automates almost everything that we need in order to implement a dependency injection pattern. Mastering Ninject for Dependency Injection will teach you everything you need to know in order to implement dependency injection using Ninject in a real-life project. Not only does it teach you about Ninject core framework features that are essential for implementing dependency injection, but it also explores the power of Ninject’s most useful extensions and demonstrates how to apply them. Mastering Ninject for Dependency Injection starts by introducing you to dependency injection and what it’s meant for with the help of sufficient examples. Eventually, you’ll learn how to integrate Ninject into your practical project and how to use its basic features. Also, you will go through scenarios wherein advanced features of Ninject, such as Multi-binding, Contextual binding, providers, factories and so on, come into play. As you progress, Mastering Ninject for Dependency Injection will show you how to create a multilayer application that demonstrates the use of Ninject on different application types such as MVC, WPF, WCF, and so on. Finally, you will learn the benefits of using the powerful extensions of Ninject.
Contents:
Intro
Mastering Ninject for Dependency Injection
Table of Contents
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
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
Defining Binding Generator
Telecom Switch example
Custom Instance Providers
Func
Lazy
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
5. Doing More with Extensions
Interception
Setup Interception
Member Interception
Type Interception
Multiple Interceptors
Intercept Attribute
Mocking Kernel
Extending Ninject
Index.
Notes:
Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed October 17, 2013).
ISBN:
9781782166214
1782166211
OCLC:
867907301

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account