Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows service - best practice for OnStart
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Windows service - best practice for OnStart
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01051752
Message ID:
01051752
Views:
59
What's the best practice for getting things going in a Windows service?. If I understand right, OnStart needs to comlete within 30 seconds, and you're also supposed to put your code there that makes the service useful.

In the couple services I have, I've launched a thread from OnStart to start the never-ending stuff my code needs to do. Is this considered ok, or is there a better method?

Thanks,
Mike
Next
Reply
Map
View

Click here to load this message in the networking platform