Beispiel #1
0
        public void Dispose()
        {
            CloseAllStreams();

            _checkTimer.Stop();
            _checkTimer.Dispose();

            _pingTimer.Stop();
            _pingTimer.Dispose();
        }
Beispiel #2
0
        public void Dispose()
        {
            foreach (var streamInfo in _streamList)
            {
                streamInfo.CompletionTask.TrySetResult(1);
                Console.WriteLine($"Remove stream connect (peer: {streamInfo.Peer}");
            }

            _checkTimer.Stop();
            _checkTimer.Dispose();

            _pingTimer.Stop();
            _pingTimer.Dispose();
        }
Beispiel #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (_reconnectIfNeededTrigger != null)
            {
                _reconnectIfNeededTrigger.Stop();
                _reconnectIfNeededTrigger.Dispose();
            }

            if (_forceReconnectTrigger != null)
            {
                _forceReconnectTrigger.Stop();
                _forceReconnectTrigger.Dispose();
            }
        }
Beispiel #4
0
 public void Dispose()
 {
     _trigger?.Dispose();
 }
Beispiel #5
0
 public void Dispose()
 {
     _timerTrigger.Dispose();
 }
Beispiel #6
0
 public void Dispose()
 {
     _timerTrigger?.Stop();
     _timerTrigger?.Dispose();
 }
 public void Dispose()
 {
     _timer?.Dispose();
 }
Beispiel #8
0
        public void Dispose()
        {
            _trigger?.Dispose();

            _coinMarketCapService?.Dispose();
        }
Beispiel #9
0
 public void Stop()
 {
     _timer?.Stop();
     _timer?.Dispose();
     _timer = null;
 }
 public void Dispose()
 {
     _cancellationTokenSource.Cancel();
     _timerTrigger.Stop();
     _timerTrigger.Dispose();
 }
Beispiel #11
0
 public void Dispose()
 {
     _maintainTicker?.Stop();
     _maintainTicker?.Dispose();
 }
 public void Dispose()
 {
     _refreshTimer.Dispose();
 }