Description
In today’s tutorial, we’re taking the next big step: turning the server console app into a fully functional Windows Service using .NET, Visual Studio, and Serilog for logging.
A Windows Service is a background application that runs on your computer without a traditional interface or direct user interaction. It’s commonly used for automation, monitoring, scheduled tasks, and countless other purposes.
In this video, you’ll learn how to build a Windows Service from scratch using Microsoft Visual Studio and C#.
🛠️ What You’ll Learn in This Video
✔️ How to convert a console-based TCP chat server into a Windows Service
✔️ How to install and configure Serilog for file-based logging
✔️ Creating and running a background worker using BackgroundService
✔️ Registering the worker with the .NET Generic Host
✔️ Setting up daily rolling logs
✔️ Installing the service using the sc command or PowerShell
✔️ Verifying logs, starting and stopping the service, and handling errors
If you have any questions or want to see an example of a service that performs a specific task, feel free to ask in the comments!
https://www.youtube.com/watch?v=SmZSjZfq58U
And don’t forget to like the video and subscribe to the channel thanks for watching!