Пример #1
0
        public void Stop()
        {
            _peerListener.Stop();

            // send disconnect to all current Peers
            DisconnectPeers();

            _stopTokenSource?.Cancel();
        }
Пример #2
0
        /// <inheritdoc />
        public void Stop()
        {
            _peerListener.Stop();

            _messageListenerTokenSource?.Cancel();

            DisconnectPeers();

            _isRunning = false;
        }
Пример #3
0
        /// <inheritdoc />
        public void Stop()
        {
            Parallel.ForEach(_serverProcesses, sp => sp.Stop());

            _peerListener.Stop();

            _messageListenerTokenSource?.Cancel();

            DisconnectPeers();

            _isRunning = false;
        }
Пример #4
0
 public void Teardown()
 {
     listener.Stop();
 }