public QuotationSnapService(QuotationSnapServiceConfig config, QuotationMQPublisher quotPublisher, Log4cb.ILog4cbHelper logHelper)
 {
     this.config = config;
     this.quotPublisher = quotPublisher;
     this.logHelper = logHelper;
     MQConnConfig mqConfig = new MQConnConfig() { Address = config.Address };
     this.stockInfoMQConsumer = new MQConsumer(mqConfig, logHelper);
     this.quotInfoMQConsumer = new MQConsumer(mqConfig, logHelper);
 }
Beispiel #2
0
        public QuotationSnapService(QuotationSnapServiceConfig config, QuotationMQPublisher quotPublisher, Log4cb.ILog4cbHelper logHelper)
        {
            this.config        = config;
            this.quotPublisher = quotPublisher;
            this.logHelper     = logHelper;
            MQConnConfig mqConfig = new MQConnConfig()
            {
                Address = config.Address
            };

            this.stockInfoMQConsumer = new MQConsumer(mqConfig, logHelper);
            this.quotInfoMQConsumer  = new MQConsumer(mqConfig, logHelper);
        }