Stop() public method

public Stop ( ) : bool
return bool
示例#1
0
        /// <summary>
        ///     Stops all underlying hubs and disposes acquired resources.
        /// </summary>
        /// <returns>True on success, false otherwise.</returns>
        public override bool Stop()
        {
            Log.Debug("Root hub stop requested");

            _serviceStarted = false;

            if (_rootHubServiceHost != null)
            {
                _rootHubServiceHost.Close();
            }

            if (_rxFeedServer != null)
            {
                _rxFeedServer.Dispose();
            }

            _scpBus.Stop();
            _usbHub.Stop();
            _bthHub.Stop();

            m_Started = !m_Started;

            Log.Debug("Root hub stopped");

            _limitInstance.Dispose();

            return(true);
        }
示例#2
0
        public override bool Stop()
        {
            Log.Info("Root hub stop requested");

            _serviceStarted = false;

            if (_rootHubServiceHost != null)
            {
                _rootHubServiceHost.Close();
            }

            if (_rxFeedServer != null)
            {
                _rxFeedServer.Dispose();
            }

            scpMap.Stop();
            _scpBus.Stop();
            _usbHub.Stop();
            _bthHub.Stop();

            Log.Info("Root hub stopped");

            return(true);
        }
示例#3
0
        public virtual Boolean Stop()
        {
            if (m_Started)
            {
                m_Started = false;
                m_Server.Close();

                usbHub.Stop();
                bthHub.Stop();
                scpBus.Stop();
            }

            return(!m_Started);
        }
示例#4
0
文件: RootHub.cs 项目: zw5/WiinUPro
        public override Boolean Stop()
        {
            if (m_Started)
            {
                m_Started = false;
                m_Server.Close();

                scpMap.Stop();

                scpBus.Stop();
                usbHub.Stop();
                bthHub.Stop();
            }

            return(!m_Started);
        }