Пример #1
0
        public void Publish(string topic, object data, int timeout)
        {
            if (!this.started)
            {
                throw new InvalidOperationException("Has not started");
            }

            publisher.PublishObject(topic, data, timeout);
        }
Пример #2
0
 public void Publish(string path, object message)
 {
     Logger.DebugFormat("publishing {1} on {0}.", path, message);
     TopicPublisher.PublishObject(path, message, 60000); // TODO: fix this timeout thing
 }
Пример #3
0
 public void Publish(string topic, object data, int timeout)
 {
     publisher.PublishObject(topic, data, timeout);
 }