//=================================== // Stoppable //=================================== public override void Stop() { _outbound.Leave(); _cancellable.Cancel(); _registry.Leave(_node.Id); base.Stop(); }
public void CancelTimer() { if (cancellable != null) { cancellable.Cancel(); cancellable = null; } }
private void ClearTimer() { if (cancellable != null) { cancellable.Cancel(); cancellable = null; } }
internal void CancelTimer() { if (cancellable != null) { cancellable.Cancel(); cancellable = null; } }
public override void Stop() { if (_cancellable != null) { _cancellable.Cancel(); } _delegate.Stop(); base.Stop(); }
public static bool TryCancel(object target) { ICancellable cancellable = target as ICancellable; if (cancellable != null) { cancellable.Cancel(); return(true); } return(false); }
//========================================= // Stoppable //========================================= public override void Stop() { if (_cancellable != null) { _cancellable.Cancel(); _cancellable = null; } _reader?.Close(); base.Stop(); }
//========================================= // Stoppable //========================================= public override void Stop() { _cancellable.Cancel(); foreach (var socketChannelSelectionProcessor in _processors) { socketChannelSelectionProcessor.Close(); } try { _channel.Close(); } catch (Exception e) { Logger.Error($"Failed to close channel for: '{_name}'", e); } base.Stop(); }
public override void Stop() { _cancellable.Cancel(); _channel.Close(); base.Stop(); }
public static bool TryCancel <TTarget>(ICancellable target) { target.Cancel(); return(true); }