Click or drag to resize

TaskMonitor Class

Class for monitoring threads via the firmware watchdog service.

Only 64 threads/tasks can be monitored.

This class is not supported on the 3-Series platforms.

Inheritance Hierarchy
SystemObject
  Crestron.SimplSharpTaskMonitor

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public sealed class TaskMonitor : IDisposable

The TaskMonitor type exposes the following members.

Constructors
 NameDescription
Public methodTaskMonitor Constructor use to register this thread/task with the watchdog service. Call Refresh to notify the service the thread is still running.

This class is not supported on the 3-Series platforms.

The watchdog service can only monitor 64 threads/tasks at a time. This exception means we have reached the limit.
Top
Properties
 NameDescription
Public propertyOperational Flag to indicate if this monitor object was successfully initialized with the watchdog.
Top
Methods
 NameDescription
Public methodDispose Dispose of this thread moniter object. This will unregister this thread/task with the watchdog service.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Finalizer for this object.
(Overrides ObjectFinalize)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodRefresh Method to notify the watchdog that this thread/task is still running.

This should be done every few seconds to prevent missed watchdog refresh cycles.

Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also