public static JMSFactory getFactory(string server, string userId, string pwd) { if (factory == null) { factory = new JMSFactory(server, userId, pwd); } return(factory); }
public static JMSFactory getFactory(string server, string userId, string pwd) { if (factory == null) { factory = new JMSFactory(server, userId, pwd); } return factory; }
public Listener(string server, string userId, string pwd, string topicName, NotifyCallBack callback, string filterCondition, List <string> pPermKeyList, bool pIsSuperUser) { this.topicName = topicName; this.callback = callback; handler = new CallbackHandler(callback, pPermKeyList, pIsSuperUser); handler.TopicName = this.topicName; JMSFactory factory = JMSFactory.getFactory(server, userId, pwd); subscriber = factory.GetInstance(topicName, handler, filterCondition); this.filterCondition = filterCondition; }