Exemplo n.º 1
0
 public static PersistBrokerPool Pool(CultureInfo cultureInfo)
 {
     if (_Pool == null)
     {
         _Pool = new PersistBrokerPool();
         _Pool._CultureInfo = cultureInfo;
     }
     return(_Pool);
 }
Exemplo n.º 2
0
        protected static IPersistBroker PersistBroker(string connectString, System.Globalization.CultureInfo cultureInfo, bool isUserInit)
        {
            //added by carey.cheng on 2010-05-20 for muti db support
            if (string.IsNullOrEmpty(connectString))
            {
                return(null);
            }
            //end added by carey.cheng on 2010-05-20 for muti db support

            if (cultureInfo == null)
            {
                cultureInfo = new System.Globalization.CultureInfo("en-US", false);
            }

            if (isUserInit)
            {
                return(PersistBrokerPool.Pool(cultureInfo).RetriveFromPool(connectString));
            }
            else
            {
                return(PersistBrokerPool.Pool(cultureInfo).RetriveFromPool());
            }
        }
Exemplo n.º 3
0
 public static IPersistBroker PersistBroker(bool usePool)
 {
     return(PersistBrokerPool.Pool(new System.Globalization.CultureInfo("en-US", false)).RetriveFromPool(usePool));
 }