Exemplo n.º 1
0
 public ApiApplication()
 {
     string size = ConfigurationManager.AppSettings["entityPoolSize"];
     uint poolSize;
     if (String.IsNullOrEmpty(size))
         poolSize = 10;
     else if (!UInt32.TryParse(size, out poolSize) && poolSize != 0)
         poolSize = 10;
     entityPool = new EntityPool((int)poolSize);
 }
Exemplo n.º 2
0
        public ApiApplication()
        {
            string size = ConfigurationManager.AppSettings["entityPoolSize"];
            uint   poolSize;

            if (String.IsNullOrEmpty(size))
            {
                poolSize = 10;
            }
            else if (!UInt32.TryParse(size, out poolSize) && poolSize != 0)
            {
                poolSize = 10;
            }
            entityPool = new EntityPool((int)poolSize);
        }