public void ExtensionShutdown() { _networkManager.RemoveNetworkNodeListener(this); _networkManager.RemoveCommandListener(this); networkDiscoverer?.Shutdown(); extensionStarted = false; if (_futureTask != null) { _cancellationTokenSource.Cancel(); } _logger.Debug("DISCOVERY Extension: Shutdown"); }
public void ExtensionShutdown() { _networkManager.RemoveNetworkNodeListener(this); _networkManager.RemoveCommandListener(this); StopScheduler(); _networkDiscoverer?.Shutdown(); lock (_nodeDiscovery) { foreach (var nodeDiscoverer in _nodeDiscovery.Values) { nodeDiscoverer.StopDiscovery(); } } extensionStarted = false; Log.Debug("DISCOVERY Extension: Shutdown"); }
public void ExtensionShutdown() { _networkManager.RemoveNetworkNodeListener(this); _networkManager.RemoveCommandListener(this); _networkDiscoverer?.Shutdown(); foreach (var nodeDiscoverer in _nodeDiscovery.Values) { nodeDiscoverer.StopDiscovery(); } extensionStarted = false; if (_futureTask != null) { _cancellationTokenSource.Cancel(); } Log.Debug("DISCOVERY Extension: Shutdown"); }