Example #1
0
 public ThreadPoolSettings(ThreadPoolSection settings)
 {
     if (settings == null)
     {
         _initialThreads = 2;
         _maxThreads     = 5;
         _name           = "AsyncHelperThreadPool";
     }
     else
     {
         _initialThreads = settings.InitialThreads;
         _maxThreads     = settings.MaxThreads;
         _name           = settings.Name;
     }
 }
 public ThreadPoolSettings(ThreadPoolSection settings)
 {
     if (settings == null)
     {
         _initialThreads = 2;
         _maxThreads = 5;
         _name = "AsyncHelperThreadPool";
     }
     else
     {
         _initialThreads = settings.InitialThreads;
         _maxThreads = settings.MaxThreads;
         _name = settings.Name;
     }
 }