
Learn to build and deploy a complete .NET Core worker service, including creating a service entity and applying budget scenarios, with deployments to hospital and Windows Surface lineup.
Prepare your .NET Core worker service development environment by installing .NET Core 2.1 on Windows, gathering the required tools, and ensuring internet access before you begin.
Explore a .NET Core worker service using a project template to run background tasks. Discover why these services are needed for scheduling, file processing, and moving results to a database.
Create a basic 'Hello world' worker service for .NET Core using templates, run it in the terminal, and observe a loop that executes every two seconds until stopped.
explore the life cycle of a .NET core worker service, detailing startup and stop events, running and debugging the project, and how to place logic at lifecycle checkpoints.
Create and manage multiple worker services inside a .NET Core project by adding new worker classes, implementing the worker interface with an execute method, and using dependency injection.
Implement and consume a scoped surface in a .NET Core worker service using dependency injection, create a scope, and invoke the surface's perform operation.
Learn to read and access configuration in a .NET core worker service by using a configuration builder to load appsettings.json, read keys and sections, and observe changes through periodic polling.
Create a time model, implement a timer-based worker service, register the timer, and log incremented content every five seconds to demonstrate a practical .NET Core worker service.
Develop and run a .NET core worker service using a thread, implementing a start–stop asynchronous workflow with a perform loop, a counter, and deliberate delays to simulate long-running tasks.
Develop a dot net worker service that monitors a folder with a filesystem watcher, reads files, and moves them to target folder, using settings and logging to manage concurrent events.
Develop a worker service in .NET Core that uses a client-server socket to listen for client connections, exchange messages, and gracefully close sockets.
Explore building a .NET Core worker service by outlining project setup, implementing entity and file system storage, configuring dependencies, and running step-by-step from project creation to execution.
Prepare a sql database by creating a products table with columns product name, quantity, price, and created, illustrating basic database preparation for a net core worker service.
Create a .NET Core worker service project using the template, select projects, monitor a folder for files, and upload results as part of a practical workflow.
Install and configure Entity Framework Core in the worker service by adding NuGet packages, creating the data context and models, and wiring the context into the application to generate data.
Develop a practical .NET Core worker service using Entity Framework Core, read and parse product data from a file, and insert records into the database via a scoped DbContext.
Execute and test your world project by running the application, loading and copying input files, and viewing chart data as you validate the workflow.
Examine a project overview for a .NET core worker service, detailing preparing the environment, creating an entity, setting up folders, uploading files, and testing the workflow.
Prepare the database by using the existing projects table, with id, product name, quantity, and price, and confirm the primary key and columns are in place for the project.
Create a new ASP.NET Core project by selecting a web site template, naming the folder and project, and finalizing the setup to establish your project structure.
Learn to add and configure Entity Framework Core by installing packages, setting up a context, and wiring startup contracts for data access.
Upload a file through an ASP.NET Core MVC form by posting multipart form data to a controller, saving the file to a files folder, and redirecting after upload.
Develop a net core worker service that monitors a folder, processes incoming files, maps data to a product model, updates the database, and moves files after processing.
Run and test your complete practical .NET Core worker service by building the project, running with IIS Express, and uploading and verifying files within the app.
Explore how to implement worker services as Windows services and as Linux and macOS daemons, enabling background sensor tasks across Windows, Linux, and macOS.
Develop a .NET core worker service that runs as a Windows service, monitors a folder for new files, and moves them to another folder with new names.
Develop a .NET core worker service for Linux daemon by creating a new project, adding libraries, configuring the service, building, running, and deploying, then testing its output.
Develop a dotnet worker service for a macOS daemon, configure folders and logging, publish a release, and run and manage the service with systemd integration.
Publish your .NET Core worker service to Azure by creating a publishing profile, selecting subscription and resource group, and configuring hosting plans before deploying and verifying in the Azure portal.
Migrate a .NET core 2.1 worker service to .NET 6.0 using Visual Studio 2022 template and minimal hosting, with a simple worker interface and implementation.
Worker Service is a project template from .NET Core. This application is designed to build background process and long-process applications. This course is presented to help you get started with .NET Core Worker Service development. Various project samples are provided to enhance your skills to apply Worker Service in real-projects.
You can run a worker service application as standalone application or integrating with your application such as ASP.NET Core application, Console application and background service app.
The bootcamp is delivered with step-by-step approach and focused on the following topics.
basic .NET Core Worker Service development
consuming Timer, Thread, FileSystemWatcher and Socket in .NET Core Worker Service
integration with Entity Framework Core and SQL Server
collaborating between Worker Service and ASP.NET Core MVC
publishing Worker Service as Windows Service, Linux and macOS daemons
publishing .NET Core Worker Service application to Microsoft Azure
You should have a basic knowledge of C# programming to follow this bootcamp.
The bootcamp starts with basic worker service application development. You can run multiple worker services in an application. We also learn how to integrate with database and ASP.NET web application.
Last, we can deploy a worker service application as background service in Windows, Linux and macOS. We also learn how to deploy this application to Microsoft Azure.
Updated:
17 November 2024: Migrating all projects to .NET 7.0. All source codes are migrated to .NET 9.0
23 July 2023: Migrating all projects to .NET 7.0. All source codes are migrated to .NET 7.0
19 February 2022: Add tutor video for migrating to .NET 6.0. All source codes are migrated to .NET 6.0