예제 #1
0
파일: Taxi.cs 프로젝트: vonwenm/Jibu
 // The constructor taking the input info channel and the output acknowledge channel.
 public Taxi(ChannelReader<Tuple<int, int, string>> info, ChannelWriter<string> ack)
 {
     customerInfoChannel = info;
     ackChannel = ack;
     timer = new Timer();           
     rand = new Random();
 }
예제 #2
0
파일: Customers.cs 프로젝트: vonwenm/Jibu
 public Customers(ChannelWriter<Tuple<int, int, string>> info)
 {
     infoChannel = info;
     rand = new Random();
     timer = new Timer();
 }