Click here to Skip to main content
15,914,642 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Foiled by a Microsoft design issue - i may have to shelf this project =( Pin
honey the codewitch27-Jul-20 8:07
mvahoney the codewitch27-Jul-20 8:07 
GeneralRe: Foiled by a Microsoft design issue - i may have to shelf this project =( Pin
RickZeeland27-Jul-20 9:25
mveRickZeeland27-Jul-20 9:25 
GeneralRe: Foiled by a Microsoft design issue - i may have to shelf this project =( Pin
honey the codewitch27-Jul-20 9:30
mvahoney the codewitch27-Jul-20 9:30 
GeneralRe: Foiled by a Microsoft design issue - i may have to shelf this project =( Pin
RickZeeland27-Jul-20 9:42
mveRickZeeland27-Jul-20 9:42 
GeneralRe: Foiled by a Microsoft design issue - i may have to shelf this project =( Pin
Gary R. Wheeler27-Jul-20 15:08
Gary R. Wheeler27-Jul-20 15:08 
GeneralRe: Foiled by a Microsoft design issue - i may have to shelf this project =( Pin
honey the codewitch27-Jul-20 15:16
mvahoney the codewitch27-Jul-20 15:16 
GeneralRe: Foiled by a Microsoft design issue - i may have to shelf this project =( Pin
Richard Deeming27-Jul-20 23:23
mveRichard Deeming27-Jul-20 23:23 
GeneralRe: Foiled by a Microsoft design issue - i may have to shelf this project =( Pin
honey the codewitch27-Jul-20 23:31
mvahoney the codewitch27-Jul-20 23:31 
I haven't seen TopShelf but I have heard it mentioned before Smile | :)

The Nito.Asynchronous library I've looked at but while it's fascinating, i don't think it solves my problems with ServiceBase.Run()

What would be easy in an unmanaged service has become astoundingly difficult in .NET because of how they designed - in particular - ServiceBase.Run()

You know why I think they did it? It's easier for the beginners when your service doesn't exit at the end of your Main() function.

So my guess is Run() just blocks for that reason. It's ridiculous the idea that more advanced developers would have to suffer the limitations put in the framework for beginners. One of the reasons I liked .NET in first place is it doesn't "hide" anything. Everything is exposed if you know where to look. The training wheels are optional.

But ServiceBase.Run() seems to be a break from that pattern.


Edit: Oh no, I forgot about the Service Control Dispatcher thread that win32 needs to host services. Looks like Run() is being tied up there. That's at least reasonable, as I can shift that to any thread I want.
Real programmers use butterflies


modified 28-Jul-20 5:41am.

GeneralAn idea I just had to get out there before it dies Pin
honey the codewitch27-Jul-20 5:08
mvahoney the codewitch27-Jul-20 5:08 
GeneralRe: An idea I just had to get out there before it dies Pin
Gerry Schmitz27-Jul-20 5:14
mveGerry Schmitz27-Jul-20 5:14 
GeneralRe: An idea I just had to get out there before it dies Pin
honey the codewitch27-Jul-20 5:15
mvahoney the codewitch27-Jul-20 5:15 
GeneralRe: An idea I just had to get out there before it dies Pin
  Forogar  27-Jul-20 5:14
professional  Forogar  27-Jul-20 5:14 
GeneralRe: An idea I just had to get out there before it dies Pin
honey the codewitch27-Jul-20 5:18
mvahoney the codewitch27-Jul-20 5:18 
GeneralRe: An idea I just had to get out there before it dies Pin
OriginalGriff27-Jul-20 5:34
mveOriginalGriff27-Jul-20 5:34 
GeneralRe: An idea I just had to get out there before it dies Pin
honey the codewitch27-Jul-20 5:37
mvahoney the codewitch27-Jul-20 5:37 
GeneralRe: An idea I just had to get out there before it dies Pin
OriginalGriff27-Jul-20 5:53
mveOriginalGriff27-Jul-20 5:53 
GeneralRe: An idea I just had to get out there before it dies Pin
honey the codewitch27-Jul-20 6:00
mvahoney the codewitch27-Jul-20 6:00 
GeneralRe: An idea I just had to get out there before it dies Pin
Chris Maunder27-Jul-20 8:16
cofounderChris Maunder27-Jul-20 8:16 
GeneralRe: An idea I just had to get out there before it dies Pin
W Balboos, GHB27-Jul-20 5:17
W Balboos, GHB27-Jul-20 5:17 
GeneralRe: An idea I just had to get out there before it dies Pin
honey the codewitch27-Jul-20 5:20
mvahoney the codewitch27-Jul-20 5:20 
GeneralRe: An idea I just had to get out there before it dies PinPopular
W Balboos, GHB27-Jul-20 5:23
W Balboos, GHB27-Jul-20 5:23 
GeneralRe: An idea I just had to get out there before it dies Pin
honey the codewitch27-Jul-20 5:30
mvahoney the codewitch27-Jul-20 5:30 
GeneralRe: An idea I just had to get out there before it dies Pin
OriginalGriff27-Jul-20 6:01
mveOriginalGriff27-Jul-20 6:01 
GeneralRe: An idea I just had to get out there before it dies Pin
W Balboos, GHB27-Jul-20 6:04
W Balboos, GHB27-Jul-20 6:04 
GeneralRe: An idea I just had to get out there before it dies Pin
OriginalGriff27-Jul-20 6:24
mveOriginalGriff27-Jul-20 6:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.