/// <summary>
        /// Start the Windows service
        /// </summary>
        /// <param name="args"></param>
        protected override void OnStart(string[] args)
        {
            string sErr = "";

            //System.Diagnostics.Debugger.Launch();
            // initialize DLL and start USB and Eth searches
            DLLConnection.CDLLConnectionController.InitDLL();

            //Initialize WCF service
            if (RoutinesLibrary.Net.WCF.WCFServiceServer.OpenWCFServiceBasic(ref sErr,
                                                                             ref m_serviceHost,
                                                                             typeof(CImplIJBCStationControllerService),
                                                                             typeof(IJBCStationControllerService),
                                                                             "JBCStationControllerSrv/service"))
            {
                // initialize discovery service. other services can discovery this one
                m_discoveryServiceHost = new RoutinesLibrary.Net.DiscoveryUDP.DiscoveryUDPHost(SearcherServicesData.MESSAGE_STATIONCONTROLLER_DISCOVERY_REQUEST,
                                                                                               SearcherServicesData.MESSAGE_STATIONCONTROLLER_DISCOVERY_RESPONSE,
                                                                                               SearcherServicesData.PORT_STATIONCONTROLLER_DISCOVERY,
                                                                                               m_serviceHost.BaseAddresses[0].ToString());

                LoggerModule.logger.Info(My.Resources.Resources.evStarted);
            }
            else
            {
                LoggerModule.logger.Error(string.Format("{0} ({1})", My.Resources.Resources.evErrorCreating, sErr));
            }
        }
        /// <summary>
        /// Start the Windows service
        /// </summary>
        /// <param name="args"></param>
        protected override void OnStart(string[] args)
        {
            string sErr = "";

            //Initialize WCF service
            if (RoutinesLibrary.Net.WCF.WCFServiceServer.OpenWCFServiceBasic(ref sErr, ref m_serviceHost, typeof(CImplIJBCHostControllerService),
                                                                             typeof(IJBCHostControllerService), "JBCHostControllerSrv/service"))
            {
                // initialize discovery service. other services can discovery this one
                m_discoveryServiceHost = new RoutinesLibrary.Net.DiscoveryUDP.DiscoveryUDPHost(SearcherServicesData.MESSAGE_HOSTCONTROLLER_DISCOVERY_REQUEST,
                                                                                               SearcherServicesData.MESSAGE_HOSTCONTROLLER_DISCOVERY_RESPONSE,
                                                                                               SearcherServicesData.PORT_HOSTCONTROLLER_DISCOVERY,
                                                                                               m_serviceHost.BaseAddresses[0].ToString());
                LoggerModule.logger.Info("Started HostController");
            }
            else
            {
                LoggerModule.logger.Error("Error Starting HostController: " + sErr);
            }
        }