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++); }
private void BuySeatsHandler(BuySeats obj) { state = SeatState.Bought; }