Class LevelOfParallelismAttribute
LevelOfParallelismAttribute is used to set the number of worker threads that may be allocated by the framework for running tests.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
public sealed class LevelOfParallelismAttribute : PropertyAttribute, IApplyToTest
- Inheritance
-
LevelOfParallelismAttribute
- Implements
- Inherited Members
Constructors
LevelOfParallelismAttribute(int)
Construct a LevelOfParallelismAttribute.
public LevelOfParallelismAttribute(int level)
Parameters
level
intThe number of worker threads to be created by the framework.