.NET Core Console App with Dependency Injection, Logging, and Settings

Описание к видео .NET Core Console App with Dependency Injection, Logging, and Settings

.NET Core has brought a lot of great benefits right into the .NET language. We get dependency injection, a much better configuration system, and we get a common logging system that is easy to use. The only problem is that mainly, we only get these things set up for us in web environments. What happens when we want to get these things running in a Console app? Well, it takes a bit of extra work, but it can be done. In this video, we are going to set up dependency injection, configuration using appsettings.json, and logging using Serilog in a Console application.

Source Code: https://leadmagnets.app/?Resource=Bet...

Mailing List: https://signup.iamtimcorey.com/
Purchase Courses: https://iamtimcorey.com

0:00 - Intro
1:49 - Creating Console App (.NET Core)
3:35 - NuGet references
7:29 - Editing csproj file in .NET Core
9:15 - Add application settings json file
10:46 - Define goals
11:30 - Builder setup: BuildConfig
21:12 - Serilog setup: LoggerConfiguration
25:04 - Host setup: CreateDefaultBuilder
30:11 - Program entry point Class
39:51 - Dependency Injection
43:04 - Calling entry point in Main()
45:21 - Configuration for Serilog in appsetings.json
50:10 - Runnning the application and fixing exceptions
55:02 - Recap, summary and concluding remarks

Thanks to Ralfs HBK for the chapter breakdown

Комментарии

Информация по комментариям в разработке