Dont expose threads to old .NET

This commit is contained in:
Matt Nadareski
2024-10-24 06:00:31 -04:00
parent 5185dde9a5
commit 29f6771845
3 changed files with 9 additions and 1 deletions

View File

@@ -16,12 +16,12 @@ namespace SabreTools.Core
/// </summary>
public readonly static string? Version = Assembly.GetExecutingAssembly().GetName().Version?.ToString();
#if NET452_OR_GREATER || NETCOREAPP
/// <summary>
/// Maximum threads to use during parallel operations
/// </summary>
public static int MaxThreads { get; set; } = Environment.ProcessorCount;
#if NET452_OR_GREATER || NETCOREAPP
/// <summary>
/// ParallelOptions object for use in parallel operations
/// </summary>