private void ReserveSeatsHandler(ReserveSeats message) { state = SeatState.TemporalyReserved; }
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; }