mirror of
https://github.com/excaliburpartners/OmniLinkBridge
synced 2024-12-22 18:52:24 +00:00
4e2bb85623
- 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
36 lines
675 B
C#
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();
|
|
}
|
|
}
|
|
}
|