Lyt når som helst, hvor som helst

Nyd den ubegrænsede adgang til tusindvis af spændende e- og lydbøger - helt gratis

  • Lyt og læs så meget du har lyst til
  • Opdag et kæmpe bibliotek fyldt med fortællinger
  • Eksklusive titler + Mofibo Originals
  • Opsig når som helst
Start tilbuddet
DK - Details page - Device banner - 894x1036

Dependency Injection in .NET Core 2.0: Make use of constructors, parameters, setters, and interface injection to write reusable and loosely-coupled code

Sprog
Engelsk
Format
Kategori

Fakta

Inject dependencies and write highly maintainable and flexible code using the new . NET Core DI Engine

About This Book • Identify when to use the constructors, parameters, setters, or Interface Injection, for best results

• Build dependencies not only for MVC within . NET but also for other frontend tools such as Angular

• Create specific components or services to cover discrete and separate pieces of functionality and call them when needed.

Who This Book Is For

C# and . NET developers who have no idea what DI is and would like to understand how to implement it in their applications.

What You Will Learn • Understand the concept of DI and its implications in modern software construction

• Learn how DI is already implemented in today's frameworks.

• Analyze how DI can be used with current software to improve maintainability and scalability.

• Learn the use of DI in . NET Core

• Get used to the possibilities that DI offers the ASP. NET Core developer in different scenarios.

• Learn about good practices and refactoring legacy code.

In Detail

. NET Core provides more control than ever over web application architectures. A key point of this software architecture is that it's based on the use of Dependency Injection as a way to properly implement the Dependency Inversion principle proposed in the SOLID principles established by Robert C. Martin.

With the advent of . NET Core, things have become much simpler with Dependency Injection built into the system. This book aims to give you a profound insight into writing loosely-coupled code using the latest features available in . NET Core. It talks about constructors, parameter, setters, and interface injection, explaining in detail, with the help of examples, which type of injection to use in which situation. It will show you how to implement a class that creates other classes with associated dependencies, also called IoC containers, and then create dependencies for each MVC component of ASP. NET Core. You'll learn to distinguish between IoC containers, the use of Inversion of Control, and DI itself, since DI is just a way of implementing IoC via these containers. You'll also learn how to build dependencies for other frontend tool such as Angular. You will get to use the in-built services offered by . NET Core to create your own custom dependencies.

Towards the end, we'll talk about some patterns and anti-patterns for Dependency Injection along with some techniques to refactor legacy applications and inject dependencies.

Style and Approach

Filled with examples, this book will take you through various techniques for injecting dependencies into your applications with or without the use of frameworks.

© 2017 Packt Publishing (E-bog): 9781787129573

Release date

E-bog: 13. november 2017

Tags

    Andre kan også lide...

    1. Coders: Who They Are, What They Think and How They Are Changing Our World Clive Thompson
    2. 97 Principles for Software Architects: Axioms for software architecture and development written by industry practitioners Multiple Authors
    3. Xanpan: Team centric agile software development Allan Kelly
    4. The Rules of Programming: How to Write Better Code Chris Zimmerman
    5. Jung Anthony Stevens
    6. HBR Guide to Managing Flexible Work Harvard Business Review
    7. Summary of Jason Schreier's Blood, Sweat, and Pixels IRB Media
    8. Ultimate Enterprise Data Analysis and Forecasting using Python Shanthababu Pandian
    9. The Players Ball: A Genius, a Con Man, and the Secret History of the Internet's Rise David Kushner
    10. AI for beginners: Begin your AI developer journey in 2024 Et Tu Code
    11. The Day After Roswell William J. Birnes
    12. HBR Guide to Beating Burnout Harvard Business Review
    13. Name Drop: The Really Good Celebrity Stories I Usually Only Tell at Happy Hour Ross Mathews
    14. Summary of Jordan Mechner's The Making of Prince of Persia IRB Media
    15. Eat That Frog! Third Edition: 21 Great Ways to Stop Procrastinating and Get More Done in Less Time Brian Tracy
    16. Principles: Life and Work Ray Dalio
    17. Summary of John Romero's Doom Guy IRB Media
    18. Coding for Beginners: A Comprehensive Beginners Guide to Learn Coding step by step from A-Z Alexander Cane
    19. Keep Sharp: How to Build a Better Brain at Any Age Sanjay Gupta
    20. Primary Greatness: The 12 Levers of Success Stephen R. Covey
    21. Get Paid More and Promoted Faster: 21 Great Ways to Get Ahead in Your Career Brian Tracy
    22. The City of Brass Shannon Chakraborty
    23. The #ArtOfTwitter: A Twitter Guide with 114 Powerful Tips for Artists, Authors, Musicians, Writers, and Other Creative Professionals Daniel Parsons
    24. The King of Pirates Daniel Defoe
    25. Bookkeeping: A Beginner’s Guide to Accounting and Bookkeeping for Small Businesses Michael Kane
    26. Summary of Thinking, Fast and Slow: by Daniel Kahneman: Key Takeaways, Summary & Analysis Included Brooks Bryant
    27. Shards of Earth: First in an extraordinary space opera trilogy, from the winner of the Arthur C. Clarke Award Adrian Tchaikovsky
    28. Who is Jeff Bezos?: The Steps He Took to Success Phil Cooper
    29. A General History of The Pyrates Daniel Defoe
    30. How To Win Friends And Influence People Dale Carnegie
    31. ANXIETY IN RELATIONSHIP: How to Manage Negative Thinking, Anxiety, and Jealousy. Change Your Mind and Achieve Your Couple Goals. Jennie Garcia
    32. Learn German with Paul Noble for Beginners – Complete Course: German Made Easy with Your 1 million-best-selling Personal Language Coach Paul Noble
    33. Essential Spanish in 2 hours with Paul Noble: Spanish Made Easy with Your 1 million-best-selling Personal Language Coach Paul Noble
    34. Metaverse Management Orion Zander
    35. Never Split the Difference: Negotiating As If Your Life Depended On It Chris Voss
    36. traverse the metaverse: book two Orion Zander
    37. Better Than Carrots or Sticks: Restorative Practices for Positive Classroom Management Dominique Smith
    38. Learn English: Ultimate Guide to Speaking Business English for Beginners: Deluxe Edition Innovative Language Learning
    39. Business English Introbooks Team
    40. 10 Powerful Things to Say to Your Kids: Creating the Relationship You Want with the Most Important People in Your Life Paul Axtell
    41. The Secrets of Happily Married Women: How to Get More Out of Your Relationship by Doing Less Theresa Foy DiGeronimo
    42. The Power of Now Eckhart Tolle
    43. Internet Riches: The Simple Money-Making Secrets of Online Millionaires Scott Fox
    44. Rv Passive Income Guide: Top 10 Jobs That Can Be Done from Anywhere by Living your Full-Time RVing Nomad Life. Online Ideas and Advices for Aggressive Retirement and Beginners. Financial Freedom. Warren Piper Ruell
    45. Stop Workplace Drama : Train Your Team to have No Complaints, No Excuses and No Regrets: Train Your Team to have No Complaints, No Excuses, and No Regrets Marlene Chism

    Vælg dit abonnement

    • Over 600.000 titler

    • Download og nyd titler offline

    • Eksklusive titler + Mofibo Originals

    • Børnevenligt miljø (Kids Mode)

    • Det er nemt at opsige når som helst

    Flex

    For dig som vil prøve Mofibo.

    89 kr. /måned
    • 1 konto

    • 20 timer/måned

    • Gem op til 100 ubrugte timer

    • Eksklusivt indhold hver uge

    • Fri lytning til podcasts

    • Ingen binding

    Prøv gratis
    Den mest populære

    Premium

    For dig som lytter og læser ofte.

    129 kr. /måned
    • 1 konto

    • 100 timer/måned

    • Eksklusivt indhold hver uge

    • Fri lytning til podcasts

    • Ingen binding

    Start tilbuddet

    Unlimited

    For dig som lytter og læser ubegrænset.

    149 kr. /måned
    • 1 konto

    • Ubegrænset adgang

    • Eksklusivt indhold hver uge

    • Fri lytning til podcasts

    • Ingen binding

    Start tilbuddet

    Family

    For dig som ønsker at dele historier med familien.

    Fra 179 kr. /måned
    • 2-6 konti

    • 100 timer/måned pr. konto

    • Fri lytning til podcasts

    • Kun 39 kr. pr. ekstra konto

    • Ingen binding

    2 konti

    179 kr. /måned
    Prøv gratis