mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Globals] Make parallel options easier to use
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
namespace SabreTools.Helper.Data
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SabreTools.Helper.Data
|
||||
{
|
||||
public class Globals
|
||||
{
|
||||
@@ -25,9 +27,18 @@
|
||||
}
|
||||
public static int MaxDegreeOfParallelism
|
||||
{
|
||||
get { return _maxDegreeOfParallelism; }
|
||||
set { _maxDegreeOfParallelism = value; }
|
||||
}
|
||||
public static ParallelOptions ParallelOptions
|
||||
{
|
||||
get
|
||||
{
|
||||
return new ParallelOptions()
|
||||
{
|
||||
MaxDegreeOfParallelism = _maxDegreeOfParallelism
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user