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) { } }