Worker Services in .NET Core 3.0 - The New Way to Create Services

preview_player
Показать описание
In .NET Core 3.0, Microsoft has added a template called a Worker Service. This template isn't just for creating Windows Services, but that is a big benefit. In this video, we will look at how to create a worker service, how to configure it, and how to deploy it to a machine.

0:00 - Intro
1:15 - Creating Demo Worker Service App
2:54 - What is a Worker Service
3:59 - Service App template code overview
9:32 - Service App code design using http client
20:15 - Showing log messages: Serilog NuGet references
22:22 - Showing log messages: Serilog configuration
25:00 - Showing log messages: Implementing Serilog
29:45 - Configuring Worker Service for Windows: WindowsServices NuGet
31:32 - Deploying the Service App
33:39 - Installing the Service using PowerShell
37:26 - Uninstalling the Service using PowerShell
39:24 - Updating, deploying, installing and uninstalling the Service
44:04 - Summary and concluding remarks

Thanks to Ralfs HBK for the chapter breakdown
Рекомендации по теме
Комментарии
Автор

This guy deserves more subscribes and more views. He is providing very great, useful and easy to understand content . Keep up the good work Tim and thank you very much for sharing your knowledge.

isserzack
Автор

Tim, if we wouldn't have Covid currently, I would kiss you: At Minute 8:00 you made clear to me, what several (text) tutorials about this topic missed before: It's an endless process and it restarts every second.
You are a wonderful tutor !!! <3

CoderboyPB
Автор

Tim,

I've recently started work on a Windows Service project and I've been looking all over for examples on how to do it. By far, this has been the clearest example that I've seen.

Thanks,

Scott

CodeZombie
Автор

FYI - Deleting the service and files is not necessary to update the executable. You can just stop the service, publish your changes, and then start the service up again. Aside from that this is an EXCELLENT tutorial!

clintaionasmith
Автор

love your tutorials man. helping a lot in my job. love from Sydney

tahmideshayat
Автор

Absolutely amazing video, I started my internship as C# developer today, the project that I'm working with have a lot of worker services this video is very useful.

viniciusmorgado
Автор

THANK YOU! I watched your other video on services ~1 year ago and thought "that's interesting, but I don't think I'll use that"...At work I was just asked to write a simple monitoring tool for our other services and this came in immensely handy.

birdasaurusrex
Автор

Great video. Of note, if you are simply updating the service, you can stop the service, copy/replace the files and start the service. No need to uninstall.

tickprophet
Автор

The concepts are explained very clearly and in detail. The demo is simple yet powerful enough to grab the full concept.

ateeqrahman
Автор

Previously we had to use Topshelf and code a lot for logging into a file. I'm glad to see its all getting standardized. Great topic, great teaching, great video.

fidel_soto
Автор

Amazing work! I was asked during training at my job to create a windows service and this one covered everything in great detail! Thank you mr.Corey

skpidis
Автор

I love the clarity with which you expose.
I will use this new knowledge to create a database backup tool that replicates Mega and Dropbox backup. I have multiple clients using SQL Server Express and I need to maintain a good backup policy on each one.
Thank you very much for the great content

Автор

great video Tim, also great content on your website. Keep up the good work. I hope people can make the difference between quality content like yours and other "made on the knees" content who just floods youtube and other chanels.

alinpaul
Автор

Excellent tutorial. Clear and easy to follow. Thanks a bunch Tim.

adventureschannel
Автор

Very very good! Beautifully articulated the context of use. You deserve far more views then you have!!

thingstodowithBASS
Автор

Absolutely great content. I loved how you start to really a beginner then you gradually progress to a more complete solution, adding log and configuring Windows Service. Loved it. Thank you so much for the great content.

ricardomlourenco
Автор

Watching this to upgrade a .NET Framework 4.5 windows service to .NET5. Great video!

luiscreates
Автор

Hi man, excellent tutorial and great & clear explanation! I'm evaluating create a windows service to check some tables in the db and I'll try to do that with net core 3.0 ! Thank you for sharing your knowledge! Cheers from Argentina!

francomorales
Автор

Excellent video ! You should have a "buy me a coffee" button.. I would have gladly bought you a couple ! Great Work again !!!

fastbowler
Автор

i am new to c# and it's quite challenging for me. but i have discovered your channel and will study your material slowly by slowly. hopping to learn a lot

smiley