SafeDispatch/ServiceGatewaySDR/Program.cs
2024-02-22 18:43:59 +02:00

49 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
using System.Configuration.Install;
using SafeMobileLib.Helpers;
using Microsoft.VisualBasic.ApplicationServices;
namespace SDRGatewayService
{
static class Program
{
public static SafeMobileLib.InterthreadMessageQueue<msgCell> gpsQueue = new SafeMobileLib.InterthreadMessageQueue<msgCell>();
public static SafeMobileLib.InterthreadMessageQueue<msgCell> smsINQueue = new SafeMobileLib.InterthreadMessageQueue<msgCell>();
public static SafeMobileLib.InterthreadMessageQueue<msgCell> smsOutQueue = new SafeMobileLib.InterthreadMessageQueue<msgCell>();
public static SafeMobileLib.InterthreadMessageQueue<msgCell> eventQueue = new SafeMobileLib.InterthreadMessageQueue<msgCell>();
static String filename = "";
public static String COMPANY = "SafeMobile";
public static string[] cmdArgs;
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
cmdArgs = args;
#if SIMOCO
COMPANY = "Simoco";
#else
COMPANY = "SafeMobile";
#endif
ServiceBase[] ServicesToRun = new ServiceBase[] { new SDRGatewayService(args) };
ServiceBase.Run(ServicesToRun);
}
}
}