public static OrleansTaskScheduler CreateTestInstance(int maxActiveThreads) { return(new OrleansTaskScheduler( maxActiveThreads, TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(100), NodeConfiguration.ENABLE_WORKER_THREAD_INJECTION, LimitManager.GetDefaultLimit(LimitNames.LIMIT_MAX_PENDING_ITEMS))); }
public static OrleansTaskScheduler CreateTestInstance(int maxActiveThreads, ICorePerformanceMetrics performanceMetrics, ILoggerFactory loggerFactory) { return(new OrleansTaskScheduler( maxActiveThreads, TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(100), NodeConfiguration.ENABLE_WORKER_THREAD_INJECTION, LimitManager.GetDefaultLimit(LimitNames.LIMIT_MAX_PENDING_ITEMS), performanceMetrics, new ExecutorService(), loggerFactory)); }
public OrleansTaskScheduler(int maxActiveThreads) : this(maxActiveThreads, TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(100), NodeConfiguration.INJECT_MORE_WORKER_THREADS, LimitManager.GetDefaultLimit(LimitNames.LIMIT_MAX_PENDING_ITEMS)) { }