Dependency Injection in .NET

Dependency Injection in .NET

Summary

Dependency Injection in .NET

presents core DI patterns in plain C# so you’ll fully understand how DI works, covers integration with standard Microsoft technologies like ASP.NET MVC, and teaches you to use DI frameworks like Structure Map, Castle Windsor, and Unity.

About the Technology

Dependency Injection is a great way to reduce tight coupling between software components. Instead of hard-coding dependencies, such as specifying a database driver, you inject a list of services that a component may need. The services are then connected by a third party. This technique enables you to better manage future changes and other complexity in your software.

About this Book

Dependency Injection in .NET introduces DI and provides a practical guide for applying it in .NET applications. The book presents the core patterns in plain C#, so you’ll fully understand how DI works. Then you’ll learn to integrate DI with standard Microsoft technologies like ASP.NET MVC, and to use DI frameworks like StructureMap, Castle Windsor, and Unity. By the end of the book, you’ll be comfortable applying this powerful technique in your everyday .NET development.

This book is written for C# developers. No previous experience with DI or DI frameworks is required.

What’s Inside

  • Many C#-based examples
  • A catalog of DI patterns and anti-patterns
  • Using both Microsoft and open source DI frameworks

Tabel of Contents

    PART 1 PUTTING DEPENDENCY INJECTION ON THE MAP
  1. A Dependency Injection tasting menu
  2. A comprehensive example
  3. DI Containers
  4. PART 2 DI CATALOG
  5. DI patterns
  6. DI anti-patterns
  7. DI refactorings
  8. PART 3 DIY DI
  9. Object Composition
  10. Object Lifetime
  11. Interception
  12. PART 4 DI CONTAINERS
  13. Castle Windsor
  14. StructureMap
  15. Spring.NET
  16. Autofac
  17. Unity
  18. MEF

List Price: $ 49.99

Price: $ 28.60

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

2 Responses to Dependency Injection in .NET

  1. Art Gorr says:
    7 of 7 people found the following review helpful:
    5.0 out of 5 stars
    Must read for .NET Devs, November 17, 2011
    By 
    Art Gorr (Buffalo, MN USA) –
    This review is from: Dependency Injection in .NET (Paperback)

    I have never written a review for Amazon before but I want to take the time here to give major props to the author for this quality book on Dependency Injection. This is easily in the top 2 of software development books that I have read. (The other being R. Martin’s Agile Principles, Patterns, and Practices in C#)

    I have been using DI successfully for several years, yet I was able to learn an enormous amount about the topic from this book. Explanations of DI principles and related patterns such as Decorator really clicked for me. Read this book and you will understand how to develop loosely coupled software components. Excellent code examples in C#. The section on object composition in MS frameworks like ASP.NET MVC and WCF is an extremely valuable resource. The footnotes will direct you to very interesting reading for an even deeper dive. I could go on.

    I highly recommend this book for .NET developers.

    Help other customers find the most helpful reviews 

    Was this review helpful to you? Yes
    No

  2. Wes Jones says:
    10 of 13 people found the following review helpful:
    5.0 out of 5 stars
    Execellent introduction to topic and exploration of several IoC frameworks., January 15, 2011
    By 
    Wes Jones (San Diego, CA USA) –
    (REAL NAME)
      

    This review is from: Dependency Injection in .NET (Paperback)

    I purhcased this book through the publisher’s early access program, and have been reading it as a PDF.

    Have you ever wondered what the difference between an “N-tier” app, and an N-tier app is?

    This book is several things. It’s a great introduction into the princples of Dependency Injection, but it’s also a primer on how to apply the concepts in the book while using several popular Dependency Injection/IoC frameworks that are out there today, such as CastleWindsor, StructureMAP, Sprint.NET, Autofac, Unity, and it even has a chapter on MEF, doing so in enough detail that you could become productive in any one of these frameworks in short order.

    The author also does a good job of weighing pros and cons of various approaches and leaves you to decide.

    This is definately worth the purchase price, and then some.

    Another good book from Manning.

    Help other customers find the most helpful reviews 

    Was this review helpful to you? Yes
    No

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>