You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
813 B
36 lines
813 B
using System;
|
|
using System.ServiceProcess;
|
|
|
|
namespace CompleteStatisticsService
|
|
{
|
|
public partial class CompleteStatisticsService : ServiceBase
|
|
{
|
|
public CompleteStatisticsService()
|
|
{
|
|
this.InitializeComponent();
|
|
}
|
|
|
|
private RunCompleteStatistics _service;
|
|
|
|
protected override void OnStart(string[] args)
|
|
{
|
|
try
|
|
{
|
|
this._service = new RunCompleteStatistics();
|
|
this._service.Start();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
if (this._service != null) {
|
|
this._service.Stop();
|
|
}
|
|
|
|
Console.WriteLine(ex.Message);
|
|
}
|
|
}
|
|
|
|
protected override void OnStop()
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|