or
Sign in to turn on 1-Click ordering.
Trade in Yours
For a 11.93 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!
Id 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 (8 customer reviews)
RRP: 31.99
Price: 25.60 & FREE Delivery in the UK. Details
You Save: 6.39 (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 10 left in stock (more on the way).
Dispatched from and sold by Amazon. Gift-wrap available.
Want it tomorrow, 2 Aug.? Choose Express delivery at checkout. Details
Trade In this Item for up to 11.93
Trade in Dependency Injection in .NET for an Amazon Gift Card of up to 11.93, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Book Description

10 Oct 2011 1935182501 978-1935182504 1

Summary

Dependency Injection in .NET, winner of the 2013 Jolt Awards for Productivity, 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.

Winner of 2013 Jolt Awards: The Best Books—one of five notable books every serious programmer should read.

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 + C# in Depth
Buy the selected items together
  • C# in Depth 22.39


Product details

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

More About the Author

Mark Seemann is a Danish software developer based in Copenhagen, Denmark. His professional interests include object-oriented development and software architecture, as well as software development in general. Apart from writing a book about Dependency Injection he has also written numerous articles and blog posts about related topics.

Despite being a .NET developer he takes most of his inspiration from sources across a wide range of technologies, including lots of pattern books.

Originally poised to become a rock star or (failing that) graphic novelist (in the European tradition) he one day found himself with insufficient talent for either, a masters degree in Economics, and a desire for working with computers. He has been doing the latter intermittently since 1995.

When not working with software or spending time with his family, Mark enjoys reading, drawing and painting, listening to and playing music, as well as preparing or consuming gourmet food and wine.

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
20 of 20 people found the following review helpful
5.0 out of 5 stars Essential reading 25 Oct 2011
Format:Paperback|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.
Read more ›
Comment | 
Was this review helpful to you?
4 of 4 people found the following review helpful
5.0 out of 5 stars Just brilliant! 16 July 2012
Format:Paperback|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.
Was this review helpful to you?
2 of 2 people found the following review helpful
5.0 out of 5 stars Essential Reading 23 Feb 2013
Format:Paperback|Verified Purchase
Relatively new to .NET, I recently joined a project team who were well under way developing a large solution which uses DI all over the place. I immediately recognised the need for me to learn about this, and all roads point to this book. The early chapters offer an excellent introduction to the subject matter and explain the basic concepts clearly and concisely.

On the containers front, I have only read the chapter about Castle Windsor as that is what we use, however it did wonders for my confidence and knowledge in setting up and configure solutions to use Windsor.

Much of the book is excellent to read chapter by chapter, plus more focussed sections offer good reference material which I'm sure I'll be going back to time and again.

If you're a ,NET developer using DI, buy this book - its that simple.
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know

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
   



Feedback