Beispiel #1
0
 public void Initialize()
 {
     var cfg = new DealerConfigParser(typeof(SignalDealer), fileName);
     // попытаться "вручную" инициализировать привязку к серверу
     // клиента WCF ManagerSignalProxy
     endpointAddress = cfg.GetString("endpointAddress", "net.tcp://localhost:55157/TradeSignalManager");
     bingingConfigName = cfg.GetString("bingingConfigName", "OpenNetTcpBinding");
     signalCategoryCode = cfg.GetInt("tradeSignalCategory", 1);
 }
Beispiel #2
0
        public RabbitServer(DealerConfigParser parser, Action<BrokerResponse> processResponse)
        {
            this.processResponse = processResponse;
            rabbitHost = new RabbitMqHost(
                parser.GetString("MQ.Host", "mq1.amarkets.org"),
                parser.GetString("MQ.ResponseQueueName", "mt4_dealer_response"),
                parser.GetString("MQ.User", "deploy"),
                parser.GetString("MQ.Password", "a6e92c1FEA"),
                ProcessRabbitResponse);

            rabbitSender = new RabbitSender(
                AppConfig.GetStringParam("MQ.Host", "mq1.amarkets.org"),
                AppConfig.GetStringParam("MQ.User", "deploy"),
                AppConfig.GetStringParam("MQ.Password", "a6e92c1FEA"),
                AppConfig.GetStringParam("MQ.RequestQueueName", "mt4_dealer_request"));
        }
 public void Initialize()
 {
     var cfg = new DealerConfigParser(typeof(SiteSignalDealer), fileName);
     queryString = cfg.GetString("queryString", "http://forexinvest.com/api/put_open_deals?msg=");
 }