public TrafficControlActor(RoadInfo roadInfo)
        {
            // initialize state
            _roadInfo = roadInfo;

            // setup message-handling
            Receive <VehicleEntryRegistered>(msg => Handle(msg));
            Receive <VehicleExitRegistered>(msg => Handle(msg));
        }
Exemple #2
0
        public VehicleActor(RoadInfo roadInfo)
        {
            // initialize state
            _roadInfo = roadInfo;

            // setup message-handling
            Receive <VehicleEntryRegistered>(msg => Handle(msg));
            Receive <VehicleExitRegistered>(msg => Handle(msg));
            Receive <VehicleInfoAvailable>(msg => Handle(msg));
            Receive <MissingCarDetected>(msg => Handle(msg));
            Receive <Shutdown>(msg => Handle(msg));
        }
 public VehicleActor(RoadInfo roadInfo)
 {
     // initialize state
     _roadInfo = roadInfo;
 }
 public TrafficControlActor(RoadInfo roadInfo)
 {
     // initialize state
     _roadInfo = roadInfo;
 }