コード例 #1
0
 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);
 }
コード例 #2
0
 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();
 }