|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/dependency-injection-configuration-logging-in-net-core/
课程评论:没有评论
**课程概述:** 本课程将引导您一步步学习如何在 .NET Core 应用程序中实现依赖注入、配置设置以及日志记录。整个过程将围绕一个简单的应用程序展开,通过依赖注入来提供配置信息和日志记录功能。课程将重点介绍如何使用流行的 nLog 日志框架来实现基于文本文件的日志记录和邮件通知。 **核心内容:** * **依赖注入 (Dependency Injection):** 学习如何在 .NET Core 中使用依赖注入来管理对象的创建和生命周期,从而提高代码的可维护性和可测试性。 * **配置设置 (Configuration Settings):** 了解如何创建和使用应用程序的配置设置,例如通过 `appsettings.json` 文件来管理应用程序的各种参数。 * **日志记录 (Logging) - nLog:** 学习如何集成和使用 nLog 这个强大的日志框架,将日志消息记录到文本文件中,方便调试和故障排查。 * **邮件通知 (Email Notifications) - nLog:** 掌握如何利用 nLog 配置邮件发送功能,在发生特定事件时向指定邮箱发送通知。 **学习目标:** 完成本课程后,您将能够: * 熟练掌握在 .NET Core 应用程序中应用依赖注入的技巧。 * 能够有效地管理和读取应用程序的配置设置。 * 成功集成 nLog 并实现基本的文本文件日志记录。 * 配置 nLog 以发送邮件通知,增强应用程序的监控和告警能力。
This is a step-by-step procedure on how to:use dependency injection create and use configuration settingslog messages to text files using nLogprovide email notifications using nLogin a.NET Core application. The course creates a simple application, then uses dependency injection to provide configuration settings and logging in the application. The popular nLog logging framework is used to provide text-based logging and email notifications.