【发布时间】:2019-05-15 23:57:18
【问题描述】:
我对以下线程有疑问:
1 以下两种方法的默认值是多少:
2 SetNumberOfWorkers:worker 是专用线程还是通过线程池?
Configure.With(...)
.(...)
.Options(o => {
o.SetNumberOfWorkers(1);
o.SetMaxParallelism(10);
})
.(...)
https://github.com/rebus-org/Rebus/wiki/Workers-and-parallelism
//
// Summary:
// Configures the total degree of parallelism allowed. This will be the maximum
// number of parallel potentially asynchrounous operations that can be active, regardless
// of the number of workers
public void SetMaxParallelism(int maxParallelism);
//
// Summary:
// Configures the number of workers to start competing over the input queue
public void SetNumberOfWorkers(int numberOfWorkers);
【问题讨论】:
标签: rebus rebus-azureservicebus