private void OnReceivedTranseferCompleted(TransferCompletedMessage request) { var sourceStation = GetStation(request.Move.FromStationNumber); var destinationStation = GetStation(request.Move.ToStationNumber); var completeMessage = new StationActor.TransferCompletedMessage(request.Move.UsersName); sourceStation.Tell(completeMessage); destinationStation.Tell(completeMessage); }
private void OnReceiveTransferCompleted(TransferCompletedMessage message) { if (_incommingUsers.Contains(message.User)) { _incommingUsers.Remove(message.User); _activeUsers.Add(message.User); } else { _leavingUsers.Remove(message.User); _activeUsers.Remove(message.User); } PrintDetails(); }