Creating Background Services in ASP.NET Core and .NET
You should take this course to learn about using hosted services in ASP.NET Core applications to perform background workloads. You will also learn how to build .NET microservices using the worker service template.
What you'll learn
Building .NET Core microservices has many advantages. In this course, Creating Background Services in ASP.NET Core and .NET, 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 the request lifecycle. Next, you will learn how to apply the worker service template when building microservices using .NET Core. Using the worker service template, you will also learn how to build .NET microservices. When you are finished with this course, you will have a strong knowledge of building ASP.NET Core hosted services and using the .NET worker service template, which will help you as you build responsive web applications and .NET Core microservices.
Table of contents
- Module Introduction 1m
- BackgroundService Implementation Details 6m
- Handling Exceptions in Hosted Services 5m
- Handling Application Shutdown 6m
- Registration Order of Hosted Services 6m
- Configuring the Host 2m
- Overriding StartAsync and StopAsync in Background Services 5m
- Unit Testing Worker Services 10m
- Avoiding Blocking Code in StartAsync 7m
- Module Summary 1m