QueuedTaskScheduler Constructor (Int32, String, Boolean, ThreadPriority, ApartmentState, Int32, Action, Action) |
Initializes the scheduler.
Namespace:
SD.LLBLGen.Pro.ApplicationCore.Parallelization
Assembly:
SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax public QueuedTaskScheduler(
int threadCount,
string threadName = "",
bool useForegroundThreads = false,
ThreadPriority threadPriority = ThreadPriority.Normal,
ApartmentState threadApartmentState = ApartmentState.MTA,
int threadMaxStackSize = 0,
Action threadInit = null,
Action threadFinally = null
)
Public Sub New (
threadCount As Integer,
Optional threadName As String = "",
Optional useForegroundThreads As Boolean = false,
Optional threadPriority As ThreadPriority = ThreadPriority.Normal,
Optional threadApartmentState As ApartmentState = ApartmentState.MTA,
Optional threadMaxStackSize As Integer = 0,
Optional threadInit As Action = Nothing,
Optional threadFinally As Action = Nothing
)
Parameters
- threadCount
- Type: SystemInt32
The number of threads to create and use for processing work items. - threadName (Optional)
- Type: SystemString
The name to use for each of the created threads. - useForegroundThreads (Optional)
- Type: SystemBoolean
A Boolean value that indicates whether to use foreground threads instead of background. - threadPriority (Optional)
- Type: System.ThreadingThreadPriority
The priority to assign to each thread. - threadApartmentState (Optional)
- Type: System.ThreadingApartmentState
The apartment state to use for each thread. - threadMaxStackSize (Optional)
- Type: SystemInt32
The stack size to use for each thread. - threadInit (Optional)
- Type: SystemAction
An initialization routine to run on each thread. - threadFinally (Optional)
- Type: SystemAction
A finalization routine to run on each thread.
See Also