public TrafficControlActor(RoadInfo roadInfo) { // initialize state _roadInfo = roadInfo; // setup message-handling Receive <VehicleEntryRegistered>(msg => Handle(msg)); Receive <VehicleExitRegistered>(msg => Handle(msg)); }
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; }