Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows service - best practice for OnStart
Message
 
To
21/09/2005 15:56:50
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01051752
Message ID:
01051779
Views:
6
Hello Keith,

>> Does the service need the "never-ending stuff" to intialize?

No, the service initializes, then goes into a never-ending loop. More precisely, it listenens for socket connections. So what I'm doing now is initializing in OnStart, then start a thread (also in OnStart). The thread's method is a never-ending loop that blocks on Socket.Listen, then continues once a connection is accepted, loops and waits for the next connection.

Is this the same idea as your suggestion?

Thanks,
Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform