Click or drag to resize

ScheduledTask Constructor

Creates a ScheduledTask.

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public ScheduledTask(
	ThreadingMode threadMode = ThreadingMode.ThreadPool,
	ThreadPriority priority = ThreadPriority.Normal,
	bool disposeOnShutdown = false
)
View Source

Parameters

threadMode  ThreadingMode  (Optional)
The manner in which the scheduled task executes.
priority  ThreadPriority  (Optional)
The thread priority to assign if a dedicated thread is used. This is ignored if using the thread-pool.
disposeOnShutdown  Boolean  (Optional)
Adds a handler to ShutdownHandler that requires this class to be disposed when the application is shutdown. Note: If this object has been garbage collected, this will have no effect.
See Also