Ejemplo n.º 1
0
        public void ManualStart()
        {
            try
            {
                int i = 0;
                _data = new Data.MongoHelper(
                    System.Configuration.ConfigurationManager.AppSettings["CORE_DB_SERVER"],
                    System.Configuration.ConfigurationManager.AppSettings["CORE_DB_DATABASE"]
                    );
                list = _data.List("channels", null);

                Partner.Bank.BankNet.config = _data.Get("config", Query.EQ("_id", "partner_bank_banknet"));
                host = new ServiceHostEnhanced[list.Length];
                foreach (dynamic channel in list)
                {
                    host[i] = new ServiceHostEnhanced(channel);
                    host[i].Open();
                    i++;
                    System.Threading.Thread.Sleep(50);
                }
                while (true)
                {
                    Thread.Sleep(10);
                }
            }
            catch (Exception ex)
            {
            }
        }
Ejemplo n.º 2
0
Archivo: XPay.cs Proyecto: GNCPay/core
 public xpay(dynamic config)
 {
     _config = config;
     api = new PartnerService();
     api.Url = config.gateway_url;
     _data = new Data.MongoHelper(_config.log_server, _config.log_db);
 }
Ejemplo n.º 3
0
 protected override void OnStop()
 {
     try
     {
         _data = null;
         list = null;
         host = null;
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 4
0
 public static void Config()
 {
     Helper.Init();
     BusinessDataHelper = new Data.MongoHelper("mongodb://127.0.0.1:27017/ewallet_business", "ewallet_business");
     CoreDataHelper = new Data.MongoHelper("mongodb://127.0.0.1:27017/ewallet_core", "ewallet_core");
 }
Ejemplo n.º 5
0
Archivo: EVN.cs Proyecto: GNCPay/core
 public EVN(string provider)
 {
     this.provider = provider;
     _helper = new Data.MongoHelper("mongodb://127.0.0.1:27017/ewallet_core", "ewallet_core");
 }
Ejemplo n.º 6
0
Archivo: EVN.cs Proyecto: GNCPay/core
 public EVN()
 {
     _helper = new Data.MongoHelper("mongodb://127.0.0.1:27017/ewallet_core", "ewallet_core");
 }
Ejemplo n.º 7
0
Archivo: FPTS.cs Proyecto: GNCPay/core
 public FPTS()
 {
     _helper = new Data.MongoHelper("mongodb://127.0.0.1:27017/ewallet_business", "ewallet_business");
 }