mirror of
https://github.com/excaliburpartners/OmniLinkBridge
synced 2024-12-23 03:02:24 +00:00
36 lines
670 B
C#
36 lines
670 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Diagnostics;
|
|
using System.ServiceProcess;
|
|
using System.Text;
|
|
|
|
namespace HAILogger
|
|
{
|
|
partial class Service : ServiceBase
|
|
{
|
|
static CoreServer server;
|
|
|
|
public Service()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override void OnStart(string[] args)
|
|
{
|
|
server = new CoreServer();
|
|
}
|
|
|
|
protected override void OnStop()
|
|
{
|
|
server.Shutdown();
|
|
}
|
|
|
|
protected override void OnShutdown()
|
|
{
|
|
server.Shutdown();
|
|
}
|
|
}
|
|
}
|