예제 #1
0
        private void BuySeatsHandler(BuySeats message)
        {
            foreach (var seat in message.Seats)
            {
                seats[seat].State = Actors.Seat.SeatState.Bought;
            }

            //confirm reservation
            Context.Sender.Tell(true, Context.Self);

            printMessagesPerSecond(messagesReceived++);
        }
예제 #2
0
 private void BuySeatsHandler(BuySeats obj)
 {
     state = SeatState.Bought;
 }