Beispiel #1
0
        protected JournalPublisher(
            string journalName,
            string messageBusName,
            string topicName)
        {
            reader           = Journal.Open(journalName).Reader(topicName);
            topic            = MessageBus.Start(messageBusName).OpenTopic(topicName);
            dispatcherThread = new Thread(DispatchEach);

            StartDispatcherThread();
        }
        protected JournalPublisher(
            string journalName,
            string messageBusName,
            string topicName)
        {
            this.reader           = Journal.Open(journalName).Reader("topic-" + topicName + "-reader");
            this.topic            = MessageBus.Start(messageBusName).OpenTopic(topicName);
            this.dispatcherThread = new Thread(new ThreadStart(this.DispatchEach));

            StartDispatcherThread();
        }