OmniLinkBridge/OmniLinkBridge/Service.cs
Ryan Wagoner 4e2bb85623 1.1.0 - Renamed to OmniLinkBridge
- Restructured code to be event based with modules
- Added MQTT module for Home Assistant
- Added pushover notifications
- Added web service API subscriptions file to persist subscriptions
2018-10-13 22:10:54 -04:00

36 lines
675 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;
namespace OmniLinkBridge
{
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();
}
}
}