-
I understand that the Windows Service model and SCM, are platform specific but is there really no easier way to code a service now, other than this rather involved and convoluted "recipe"? Who has the time to "rewrite" this and that class and all the other steps. I've built Windows services many times in both C and C# (.Net F) and think we need a simpler approach for doing so under .Net. There isn't even a template for such a project, so I'm asking what would it take to create a .Net version of the older |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
As someone who actively works with Windows services in both .NET Framework and modern .NET, I completely disagree with the idea of having an identical set of classes for that. I prefer the modern worker service approach much more than the classic There is a template for worker services and this template can easily be extended to add support for a Windows service, and there isn't a ton of rewriting needed to facilitate it. https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service |
Beta Was this translation helpful? Give feedback.
-
Hmm, seems there is a .Net 8 version of all this, how did I miss this? |
Beta Was this translation helpful? Give feedback.
-
Yup, seems exactly what I was seeking, amazing! |
Beta Was this translation helpful? Give feedback.
Yup, seems exactly what I was seeking, amazing!