ThreadWorker ClassCleanCode C# Libraries v1.2.03 API
Base (abstract) class for worker threads.
Inheritance Hierarchy

OnlineSystem Object
  CleanCode.Threading ThreadWorker
    CleanCode.Net PingWorker
    CleanCode.Net WMIWorker
    CleanCode.RemoteCommands CmdRunnerWorker

Namespace: CleanCode.Threading
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax

public abstract class ThreadWorker
Remarks

Inherited classes work in conjunction with an instance of ThreadManager to manage background operations for a GUI. A number of abstract methods must be implemented when you subclass this class, plus you should wrap your main code with a try-catch block that catches a OnlineThreadAbortException, in case the user initiates an abort through the ThreadManager.

Known subclasses:

PingWorker
Executes a network ping on a collection of remote servers.
CleanCode.RemoteCommands.CmdRunnerWorker
Executes one command on a collection of remote servers using a telnet session.
CleanCode.RemoteCommands.CmdRunnerMultiWorker
Not a subclass, but rather a class that manages multiple CmdRunnerWorkers. Listed here for completeness.
WMIWorker
Executes a WMI (OnlineWindows Management Instrumentation) query on a collection of remote servers.

Since CleanCode 0.9.07.

See Also