示例#1
0
 public EventQueue(AsyncRouter router)
 {
     _queue  = new ConcurrentQueue <object>();
     _router = router;
 }
示例#2
0
 public Bus()
 {
     _listener     = new AsyncListener(IP, PORT);
     _router       = new AsyncRouter();
     _messageQueue = new EventQueue(_router);
 }