Buy New

or
Sign in to turn on 1-Click ordering.
Buy Used
Used - Good See details
Price: £22.88

or
Sign in to turn on 1-Click ordering.
 
   
Trade in Yours
For a £9.98 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Colour:
Image not available

 
Tell the Publisher!
I’d like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Dependency Injection in .NET [Paperback]

Mark Seemann
5.0 out of 5 stars  See all reviews (5 customer reviews)
RRP: £33.99
Price: £27.19 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £6.80 (20%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 6 left in stock (more on the way).
Dispatched from and sold by Amazon. Gift-wrap available.
Want delivery by Wednesday, 22 May? Choose Express delivery at checkout. See Details
Trade In this Item for up to £9.98
Trade in Dependency Injection in .NET for an Amazon.co.uk gift card of up to £9.98, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Book Description

7 Oct 2011 1935182501 978-1935182504 1

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.

Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.

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

Frequently Bought Together

Dependency Injection in .NET + The Art of Unit Testing: with Examples in .NET + C# in Depth
Price For All Three: £80.67

Buy the selected items together


Product details

  • Paperback: 584 pages
  • Publisher: Manning Publications; 1 edition (7 Oct 2011)
  • Language: English
  • ISBN-10: 1935182501
  • ISBN-13: 978-1935182504
  • Product Dimensions: 18.9 x 3.1 x 22.9 cm
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Bestsellers Rank: 23,793 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, and more.

Product Description

About the Author

Mark Seemann is a software architect living in Copenhagen. Previously a developer and architect at Microsoft, Mark is now an independent consultant.


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

4 star
0
3 star
0
2 star
0
1 star
0
5.0 out of 5 stars
5.0 out of 5 stars
Most Helpful Customer Reviews
14 of 14 people found the following review helpful
5.0 out of 5 stars Essential reading 25 Oct 2011
Format:Paperback|Amazon Verified Purchase
This book gives one of the best explanations of Dependency Injection you will find. Given that DI is applicable almost everywhere, this has to make it one of the most important books for any .NET developer to read.

I thought that with over 15 years of OO coding experience there wouldn't be much for me here, but I couldn't have been more wrong. Somehow, although the vast majority of the text seems familiar, the clarity of the explanations have had a revitalising effect on me - coding the right way just seems to be so much clearer now! The exposition is brought to life with a set of example code that is simple enough not to cloud the issues at hand yet complex enough to translate easily to real-world applications. This is a difficult balance to strike but Mark has really hit the nail on the head.

I found the sections on Anti-Patterns particularly enlightening - the description of each explains why these anti-patterns arise in a way that reinforces the understanding and motivation for the Patterns covered in the preceding section, and provides you a clear refactoring path towards a better solution.

I'm not ashamed to say that reading this book has had a significant positive impact on my application design and also improved my approach to Test Driven Development. I've found myself detecting and correcting code smells far more efficiently than I was previously able to.

If you are completely new to DI, then your experience may be harder going. This book does assume a fair degree familiarity with OO concepts - and references to ideas like SOLID code and refactoring are brought up without going into too much background detail. However, there are plenty of links in the footnotes to informative blog posts and books. If phrases like "coding to interfaces", "pattern", "anti-pattern" and "abstract factories" are only vaguely familiar to you, then you will have some reading around the subject to do to get full benefit from this book.

The benefits of understanding the ideas so well presented in this book cannot really be understated. Mark Seemann has created a book that ranks alongside the works of Bob Martin, Eric Evans, Jon Skeet and Jeffrey Richter in terms of its potential impact and importance to C# developers. Highly recommended.
Comment | 
Was this review helpful to you?
3 of 3 people found the following review helpful
5.0 out of 5 stars Just brilliant! 16 July 2012
Format:Paperback|Amazon Verified Purchase
'Dependency Injection in .NET' is not only about dependency injection but about designing your application in general. The book is a real roundup of design patterns and good practices for (future) software architects. I highly recommend this book for developers who have never heard about IoC and for those ones who have been using IoC for some time. I have been using a few different IoC/DI containers and thanks to this book I realized I was doing it wrong.

Author focuses on desinging loosely coupled applications and he shows how DI can help us do it. He mentions a lot of design patterns and explaines how they are associated with DI. He also provides a reader with a lot of examples using different IoC containers.

Tha last chapter contains a catalogue of a few popular .NET IoC containers (StructureMap, Castle Windsor, Autofac, Unity, MEF).
Comment | 
Was this review helpful to you?
3 of 3 people found the following review helpful
Format:Paperback
In this book Mark Seemann describes Dependency Injection into great detail and guides you on how to architect and develop a real world application, the right way.

You will get detailed information on most popular DI containers in .NET with lots of useful tips for each one. Even more, you will be able to see Dependency Injection applied with plenty amount of high-quality source code available - from simple samples to complex real-world ones! And it goes even further by including high-quality unit test code from where you may see how you can efficiently focus on the essentials of each test case and how everything play nicely when you have followed the catalog of DI patterns described.

This book can definitely make you want to go back in time and re-write all of your applications! Everyone building any kind of software should read this book.
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   
Related forums




Feedback


Amazon.co.uk Privacy Statement Amazon.co.uk Delivery Information Amazon.co.uk Returns & Exchanges