Exemplo n.º 1
0
 private static void TestServiceRunner()
 {
     string serviceConfigFile = ConfigurationManager.AppSettings["ServiceDefinition"];
     ServiceRunner runner = new ServiceRunner(new FakeServiceControl(), serviceConfigFile);
     runner.Start();
     Thread.Sleep(10000);
     runner.Stop();
 }
Exemplo n.º 2
0
 protected override void OnStart(string[] args)
 {
     string serviceConfigFile = ConfigurationManager.AppSettings["ServiceDefinition"];
     _runner = new ServiceRunner(this, serviceConfigFile);
     _runner.Start();
 }