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...
-
I dreamed this whole thing and implemented it on my own over a year ago. Download and install ASP.Net MVC Framework . See steps 7 -9 of prev...
-
Have now wasted several hours downloading and evaluating SQL Test Data Generators. The only one that actually 'worked' doesn't ...
No comments:
Post a Comment