/// <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); }
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); }
public virtual Boolean Stop() { if (m_Started) { m_Started = false; m_Server.Close(); usbHub.Stop(); bthHub.Stop(); scpBus.Stop(); } return(!m_Started); }
public override Boolean Stop() { if (m_Started) { m_Started = false; m_Server.Close(); scpMap.Stop(); scpBus.Stop(); usbHub.Stop(); bthHub.Stop(); } return(!m_Started); }