コード例 #1
0
 public TopicController(MQueue mq)
 {
     Q           = mq;
     Logger      = QLogger.Logger.ILog;
     Controller  = AgentManager.Queue;
     Initialized = false;
     SendDirect  = mq.Mode == CoverMode.Rout;
     AddTopic(mq.QueueName, mq.TargetPath);
 }
コード例 #2
0
        public TopicDispatcher(QueueController controller)
        {
            Controller  = controller;
            Initialized = false;
            SendDirect  = true;
            var topicProp = new QProperties("TopicEvent", false, CoverMode.Memory);

            EventQueue = new PriorityPersistQueue(topicProp);
            Logger     = QLogger.Logger.ILog;
            //m_Topic = new Topics();
        }