Dependency Injection Principles, Practices, and Patterns

所需积分/C币:21 2019-03-26 10:58:13 13.98MB PDF
35
收藏 收藏
举报

Summary Dependency Injection Principles, Practices, and Patterns teaches you to use DI to reduce hard-coded dependencies between application components. You'll start by learning what DI is and what types of applications will benefit from it. Then, you'll work through concrete scenarios using C# and the .NET framework to implement DI in your own projects. As you dive into the thoroughly-explained examples, you'll develop a foundation you can apply to any of the many DI libraries for .NET and .NET Core. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Dependency Injection (DI) is a great way to reduce tight coupling between software components. Instead of hard-coding dependencies, such as specifying a database driver, you make those connections through a third party. Central to application frameworks like ASP.NET Core, DI enables you to better manage changes and other complexity in your software. About the Book Dependency Injection Principles, Practices, and Patterns is a revised and expanded edition of the bestselling classic Dependency Injection in .NET. It teaches you DI from the ground up, featuring relevant examples, patterns, and anti-patterns for creating loosely coupled, well-structured applications. The well-annotated code and diagrams use C# examples to illustrate principles that work flawlessly with modern object-oriented languages and DI libraries. What's Inside Refactoring existing code into loosely coupled code DI techniques that work with statically typed OO languages Integration with common .NET frameworks Updated examples illustrating DI in .NET Core About the Reader For intermediate OO developers. About the Authors Mark Seemann is a programmer, software architect, and speaker who has been working with software since 1995, including six years with Microsoft. Steven van Deursen is a seasoned .NET developer and architect, and the author and maintainer of the Simple Inject
卫葱口 微信搜索公众号 DailyProg 扫码关注“每天一本编程书” Praise for the First edition Realistic examples keep the big picture in focus.. A real treat Glenn block Microsoft Well-written, thoughtful, easy to follow, and... timeless David barkol Neudesic Fills a huge need for. nET designers Paul grebenc PCA Services Takes the mystery out of a mystifying topic., Rama krishna 8C Software A uniquely personal way to learn about modern software development principles in depth. Highly recommended! Darren neimke HomeStart finance Al you ever need to know about dependency injection .. and more! nas Bandl TechTalk “ A must read on Dependency Injection.” Braj panda Capgemini India This book will be the definitive guide to Dependency Injection for the NETstack Doug Ferguson Improving Enterprises Dependency Injection Principles, Practices, and Patterns Dependency injectio PRINCIPLES. PRACTICES AND PATTERNS STEVEN VAN DEURSEN MARK SEEMANN MANNING SHELTER ISLAND For online information and ordering of this and other manning books, please visit www.manning.com.Thepublisheroffersdiscountsonthisbookwhenorderedinquantity For more information, please contact Special sales department Manning publications co 20 Baldwin road PO BOX 761 Shelter island. ny11964 Emailorders@manning.com o2019 by Manning Publications Co. All rights reserved No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps 6 Recognizing the importance of preserving what has been written, it is Manning's policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine Manning Publications Co Acquisitions editor: Mike Stephens 20 Baldwin Road Development editors: Marina michaels and PO Box 761 Dan mahar Shelter island. nY11964 Technical development editor: Karsten Strobaek Review editor: Ivan martinovic Production editor: Anthony Calcara Copy editor: Frances Buran Proofreader: Katie tennant Technical proofreader: Chris Heneghan Typesetter. Happenstance Type-O-Rama Cover designer: Marja Tudor ISBN9781617294730 Printed in the united states of america 12345678910-SP-242322212019 brief contents PART I PUTTING DEPENDENCY INJECTION ON THE MAP 1 The basics of Dependency Injection: What, why, and how 3 2 Writing tightly coupled code 34 3 Writing loosely coupled code 52 PART 2 CATALOG 81 4 DI patterns 83 5■ DI anti-patterns124 6 Code smells 163 PART3 PURE DI。 209 7 Application composition 211 8 Object lifetime 236 9■ Interception281 10 Aspect-Oriented Programming by design 301 11 Tool-based Aspect-Oriented Programming 341 PART 4 DI CONTAINERS .357 12 DI Container introduction 359 13 The Autofac di container 393 14-The Simple Injector DI Container 427 15 The Microsoft Extensions. Dependencylnjection DI Container 466

...展开详情
试读 127P Dependency Injection Principles, Practices, and Patterns
立即下载 身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
关注 私信
上传资源赚钱or赚积分
最新推荐
Dependency Injection Principles, Practices, and Patterns 21积分/C币 立即下载
1/127
Dependency Injection Principles, Practices, and Patterns第1页
Dependency Injection Principles, Practices, and Patterns第2页
Dependency Injection Principles, Practices, and Patterns第3页
Dependency Injection Principles, Practices, and Patterns第4页
Dependency Injection Principles, Practices, and Patterns第5页
Dependency Injection Principles, Practices, and Patterns第6页
Dependency Injection Principles, Practices, and Patterns第7页
Dependency Injection Principles, Practices, and Patterns第8页
Dependency Injection Principles, Practices, and Patterns第9页
Dependency Injection Principles, Practices, and Patterns第10页
Dependency Injection Principles, Practices, and Patterns第11页
Dependency Injection Principles, Practices, and Patterns第12页
Dependency Injection Principles, Practices, and Patterns第13页
Dependency Injection Principles, Practices, and Patterns第14页
Dependency Injection Principles, Practices, and Patterns第15页
Dependency Injection Principles, Practices, and Patterns第16页
Dependency Injection Principles, Practices, and Patterns第17页
Dependency Injection Principles, Practices, and Patterns第18页
Dependency Injection Principles, Practices, and Patterns第19页
Dependency Injection Principles, Practices, and Patterns第20页

试读结束, 可继续阅读

21积分/C币 立即下载