public void Stop() { _peerListener.Stop(); // send disconnect to all current Peers DisconnectPeers(); _stopTokenSource?.Cancel(); }
/// <inheritdoc /> public void Stop() { _peerListener.Stop(); _messageListenerTokenSource?.Cancel(); DisconnectPeers(); _isRunning = false; }
/// <inheritdoc /> public void Stop() { Parallel.ForEach(_serverProcesses, sp => sp.Stop()); _peerListener.Stop(); _messageListenerTokenSource?.Cancel(); DisconnectPeers(); _isRunning = false; }
public void Teardown() { listener.Stop(); }