Beispiel #1
0
 // 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();
 }
Beispiel #2
0
 public Customers(ChannelWriter<Tuple<int, int, string>> info)
 {
     infoChannel = info;
     rand = new Random();
     timer = new Timer();
 }