using System.ServiceProcess;
namespace MyService {
public partial class MyService : ServiceBase {
public MyService() {
InitializeComponent();
}
protected override void OnStart(string[] args) {
//This will launch a debugger
System.Diagnostics.Debugger.Launch();
//Do the real job
MyWorker.Start();
}
}
}
Wednesday, October 29, 2008
How Grownups Debug Windows Service Startups
Subscribe to:
Post Comments (Atom)
C# Sucks!
JK!! Seriously, though, somewhere around C#-3 we should have inculcated ourselves with the question: "Does 'CAN' == 'SHOULD...
-
Running this code will NOT cause a runtime error if 'b' is not of type 'myclass'. 'a' will simply be assigned null ...
-
You may wish to expose a 'private' web service such that in order for a new client to access it, the client must be furnished with a...
No comments:
Post a Comment