C# Windows Service running twice

  • Thread starter Thread starter racarter_
  • Start date Start date
R

racarter_

Guest
i have a windows service that looks something like this:

public sealed class MyService : ServiceBase
{
public MyService()
{
InitializeComponent();
Log("constructor called");
}

public override void OnStart(string[] args)
{
Log("onstart called");
}
}

Once i start my service, my log looks like this:
constructor called
constructor called
onstart called
onstart called


What i am noticing is that I am having two services running at the same time. why is that? can i fix this?

Continue reading...
 
Back
Top