Software Architecture: Dependency Injection for C# Devs

所在平台: Udemy

课程主页: https://www.udemy.com/course/dependency-injection/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:软件架构:C#开发者的依赖注入 概述:本课程旨在帮助学员建立稳固的软件架构基础,运用依赖注入(Dependency Injection,DI)与控制反转容器(IoC-Containers)。在我的许多课程中,我使用了依赖注入的技术,但许多学生在学习过程中常常感到困惑,无法理解这一概念,这对他们的学习是非常不利的。依赖注入是一种向对象提供依赖关系的技术。如果您曾经通过构造函数传递依赖关系,那您实际上就是在使用构造函数注入。 依赖注入既简单又复杂。一方面,它由简单的技术构成;另一方面,当我们需要将依赖注入提升到更高的水平时,就需要引入控制反转容器,这些框架会自动执行依赖注入。您只需在应用程序根目录下设置一个容器,之后它会在运行时解析所有已知的依赖关系。 如果您对依赖注入仍感到困惑,请相信我,了解依赖注入是非常必要的。本课程将极大地提升您对软件架构形成的理解,因此,对于仍然不理解依赖注入和IoC容器的人来说,这是一门“必看”的课程。 内容与概述:本课程面向各种开发者,提供扎实的理论基础并辅以实践材料。课程内容包括: - 控制反转简介:依赖反转原则(DIP)、控制反转(IoC)、依赖注入(DI)、依赖关系及其类型、纯依赖注入与IoC容器、服务定位器 - 依赖注入的架构影响 - 依赖注入相关的反模式与重构:控制狂、隐式依赖、时间耦合、构造函数过度注入及其避免方法、环境上下文、外观服务、属性注入与混乱注入、循环依赖 - 运用依赖注入对现有代码库的重构示例 - 利用IoC容器的优势:概述、Unity、与Unity的延迟绑定、面向方面的编程(AOP)、拦截与纯依赖注入的对比、设置Unity的引导程序、Autofac和Castle.Windsor的使用 - 单元测试入门 教学方法:本课程没有赘述与空话,充分尊重学员的时间。课程材料简明扼要,内容全面。所有重要概念均有涵盖,尤其重要的主题会深入探讨。参加本课程,您将获得满意的学习体验。

课程评论(0条)

课程详情

Build a solid foundation in software architecture applying Dependency Injection with IoC-ContainersIn many of my courses I use techniques of Dependency Injection and each time students write me private messages saying that they don't what it is and thus they don't understand what's going on in the course I teach. This is very unfortunate from the learning perspectives.Dependency Injection is the set of techniques that allow to supply dependencies to objects. Actually, if you have ever passed dependencies via constructors, then you applied the so-called constructor injection. Dependency Injection (DI) is simple and difficult at the same time. On one hand, DI is comprised of simple techniques and on the other hand, when we need to bring DI to the next level, we need to make things more complicated using the so-called DI or IoC (Inversion of Control) Containers. These are the frameworks which perform dependency injection automatically. You just need to set one up in the application root (an extremely important notion which you'll learn about in the course) and after that, it will resolve all the dependencies it knows about in the runtime.If you still don't understand what am I talking about, just believe me, you absolutely need to know about Dependency Injection. This course will tremendously improve your understanding of how software architectures emerge. So, this course is "must watch" for anyone who still doesn't understand what is DI and IoC-Containers.Content and OverviewThis course is aimed at all kind of developers. It provides solid theoretical base reinforced by practical material. The course covers:Introduction to Inversion of Control: Dependency Inversion Principle (DIP), Inversion of Control (IoC), Dependency Injection (DI),Dependencies and their types, Pure DI and IoC-Containers, Service LocatorThe Architectural Implications of Dependency InjectionDI-related Anti-Patterns & Refactorings: Control Freak, Hidden Dependencies, Temporal Coupling, Constructor Over-Injection and how to avoid it, Ambient Context, Facade Service, Property Injection vs Bastard Injection, Cyclic DependenciesRefactoring Example of an existing code base applying Dependency InjectionHow to reap the fruits of DIDI-Containers (IoC-Containers):Overview, Unity, Late Binding with Unity, Aspect-Oriented Programming (AOP), Interception vs Pure DI vs AOP Tools,Setting up a bootstrapper with Unity, Autofac and Castle.WindsorIntroduction to Unit TestingTeaching ApproachNo fluff, no ranting, no beating the air. I respect your time. The course material is succinct, yet comprehensive. All the important concepts are covered. Particularly important topics are covered in-depth.Take this course, and you will be satisfied.

课程标签

0人关注该课程

主题相关的课程