Building ASP.NET Core 3 Hosted Services and .NET Core 3 Worker Services
You should take this course to learn about using hosted services in ASP.NET Core application to perform background workloads. You will also learn how to build .NET Core microservices using the worker service template.
What you'll learn
Building .NET Core microservices has many advantages. In this course, Building ASP.NET Core Hosted Services and .NET Core Worker Services, you will learn when and how to apply hosted services in your applications. First, you will learn about adding hosted services to ASP.NET Core applications to perform background workloads outside of the request lifecycle. Next, you will learn how to apply the worker service template when building microservices using .NET Core. You will also learn how to build .NET Core microservices, using the worker service template introduced in .NET Core 3.0. When you are finished with this course, you will have a strong knowledge of building ASP.NET Core hosted services and using the .NET Core worker service template, which will help you as you build responsive web applications and .NET Core microservices. Software required: .NET Core SDK 3.1
Table of contents
- Module Introduction 1m
- BackgroundService Implementation Details 3m
- Handling Exceptions in Hosted Services 3m
- Handling Application Shutdown 5m
- Registration Order of Hosted Services 6m
- Configuring the Host 2m
- Overriding StartAsync or StopAsync in Background Services 2m
- Unit Testing Worker Services 5m
- Avoiding Blocking Code in StartAsync 3m
- Module Summary 1m