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.03)

public abstract class ThreadWorker

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:

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

Since CleanCode 0.9.07.

See Also