public ConcurrentExclusiveSchedulerPair(TaskScheduler taskScheduler, int maxConcurrencyLevel, int maxItemsPerTask) { this.target = taskScheduler; this.maxConcurrencyLevel = maxConcurrencyLevel; this.maxItemsPerTask = maxItemsPerTask; this.factory = new TaskFactory(taskScheduler); this.taskHandler = InternalTaskProcesser; this.concurrent = new InnerTaskScheduler(this, concurrentTasks); this.exclusive = new InnerTaskScheduler(this, exclusiveTasks); }
public ConcurrentExclusiveSchedulerPair (TaskScheduler taskScheduler, int maxConcurrencyLevel, int maxItemsPerTask) { this.target = taskScheduler; this.maxConcurrencyLevel = maxConcurrencyLevel; this.maxItemsPerTask = maxItemsPerTask; this.factory = new TaskFactory (taskScheduler); this.taskHandler = InternalTaskProcesser; this.concurrent = new InnerTaskScheduler (this, concurrentTasks); this.exclusive = new InnerTaskScheduler (this, exclusiveTasks); }