Click or drag to resize

ScheduledTask Class

Represents a way to schedule a task to be executed on a separate thread immediately or after a given time delay.
Inheritance Hierarchy
SystemObject
  GSF.ThreadingScheduledTask

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public class ScheduledTask : IDisposable
View Source

The ScheduledTask type exposes the following members.

Constructors
 NameDescription
Public methodScheduledTask Creates a ScheduledTask.
Top
Methods
 NameDescription
Public methodDispose Starts the disposing process of exiting the worker thread.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Cleans up the ThreadContainerBase thread since that class likely will never be garbage collected.
(Overrides ObjectFinalize)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStart Starts the task immediately, or if one was scheduled, starts the scheduled task immediately
Public methodStart(Int32) Starts a timer to run the task after a provided interval.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventDisposing Occurs right before this task is disposed.
Public eventRunning Occurs every time the task should run.
Public eventUnhandledException Occurs when Running or Disposing event throws an exception.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also