From 3cf7c459941eaf2b37bd8ced2bfb4b748417361a Mon Sep 17 00:00:00 2001 From: BobLd Date: Sat, 23 May 2020 19:16:57 +0100 Subject: [PATCH] add DlaOptions abstract class --- .../DlaOptions.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/UglyToad.PdfPig.DocumentLayoutAnalysis/DlaOptions.cs diff --git a/src/UglyToad.PdfPig.DocumentLayoutAnalysis/DlaOptions.cs b/src/UglyToad.PdfPig.DocumentLayoutAnalysis/DlaOptions.cs new file mode 100644 index 00000000..39537029 --- /dev/null +++ b/src/UglyToad.PdfPig.DocumentLayoutAnalysis/DlaOptions.cs @@ -0,0 +1,16 @@ +namespace UglyToad.PdfPig.DocumentLayoutAnalysis +{ + /// + /// Abstract class that stores options that configure the operation of methods of the document layout analysis algorithm. + /// + public abstract class DlaOptions + { + /// + /// Gets or sets the maximum number of concurrent tasks enabled. + /// A positive property value limits the number of concurrent operations to the set value. + /// If it is -1, there is no limit on the number of concurrently running operations. + /// Default value is -1. + /// + public int MaxDegreeOfParallelism { get; set; } = -1; + } +}