private void RaiseHeartbeatFailed() { _currentConsumerTaskCancellation.Cancel(); _heartbeatSocket.Close(); _heartbeatSocket.Dispose(); _consumerSocket.Close(); _consumerSocket.Dispose(); }
public void Dispose() { _cancel.Cancel(); _heartbeatSocket.Close(); _heartbeatSocket.Dispose(); }
public void Stop() { _cancel.Cancel(); _heartbeatSocket.Close(); _heartbeatSocket.Dispose(); _publisherSocket.Close(); _publisherSocket.Dispose(); }
public void Kill() { _poller.Stop(); _frontend.Close(); _frontend.Dispose(); _backend.Close(); _backend.Dispose(); }
protected override Task DestroyInternal() { _cancel.Cancel(); _poller.Stop(); _heartbeatSocket.Close(); _heartbeatSocket.Dispose(); _stateRequestSocket.Close(); _stateRequestSocket.Dispose(); return(Task.CompletedTask); }
public void Kill() { _poller.Stop(); _heartbeat.Close(); _heartbeat.Dispose(); _frontend.Close(); _frontend.Dispose(); _backend.Close(); _backend.Dispose(); _workerQueue.Dispose(); _workQueue.Dispose(); }
public void Stop() { _cancel.Cancel(); _poller.Stop(); _heartbeat.Close(); _heartbeat.Dispose(); _publishStateUpdate.Close(); _publishStateUpdate.Dispose(); _subscribeToUpdates.Close(); _subscribeToUpdates.Dispose(); _stateRequest.Close(); _stateRequest.Dispose(); }
public override Task Stop() { _cancel.Cancel(); _poller.Stop(); _heartbeat.Close(); _heartbeat.Dispose(); _frontend.Close(); _frontend.Dispose(); _backend.Close(); _backend.Dispose(); return(Task.CompletedTask); }
public async Task Stop() { var peerList = _peerLastContact.Select(x => x.Key).ToList(); lock (_server) { foreach (var peerId in peerList) { _server .SendMoreFrame(peerId.ToByteArray()) .SendMoreFrame(_nodeId.ToByteArray()) .SendFrame(ConvertOp(MessageOp.Disconnect)); } } _poller.Stop(); _poller.Remove(_server); _poller.Remove(_houseKeeper); _houseKeeper.Enable = false; _server.Close(); }
public void Stop() { _proxy.Stop(); _router?.Close(); _dealer?.Close(); }
/// <summary> /// 停止 /// </summary> public void Stop() { frontEnd.Close(); backEnd.Close(); proxy.Stop(); }