示例#1
0
 private void ReserveSeatsHandler(ReserveSeats message)
 {
     state = SeatState.TemporalyReserved;
 }
示例#2
0
        private bool ReserveSeatsHandler(ReserveSeats message)
        {
            foreach (var seat in message.Seats)
            {
                seats[seat].State = Actors.Seat.SeatState.TemporalyReserved;
            }

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

            printMessagesPerSecond(messagesReceived++);

            return true;
        }