Ejemplo n.º 1
0
 public RoomActor(RoomCommandHandler commandHandler)
 {
     _projectionEngine = Context.System.ActorSelection("/user/ConsoleUi/projectionEngine");
     _commandHandler   = commandHandler;
     // kill the actor after inactivity
     Receive <ReceiveTimeout>(timeout => Self.Tell(PoisonPill.Instance));
     ReceiveAsync <EnableBookingCommand>(Handle);
     ReceiveAsync <DisableBookingCommand>(Handle);
     ReceiveAsync <BookRoomCommand>(Handle);
 }
Ejemplo n.º 2
0
 public RoomsController(RoomCommandHandler handler, ILoggingService loggingService) : base(handler, loggingService)
 {
 }