protected virtual ThreadPoolSynchronizer ProvideSynchronizer()
 {
     if (ThreadPoolHelper.HasSynchronizer(ServiceType) == false)
     {
         return(new ThreadPoolSynchronizer(PoolSize, PoolName));
     }
     else
     {
         return(ThreadPoolHelper.GetSynchronizer(ServiceType));
     }
 }
Esempio n. 2
0
 protected override ThreadPoolSynchronizer ProvideSynchronizer()
 {
     if (ThreadPoolHelper.HasSynchronizer(ServiceType) == false)
     {
         return(new PrioritySynchronizer(PoolSize, PoolName));
     }
     else
     {
         return(ThreadPoolHelper.GetSynchronizer(ServiceType));
     }
 }