ThreadWorker Setup Method CleanCode C# Libraries v1.2.03 API
Prepares this instance, creating (but not starting) the thread.

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

public abstract Thread Setup()

Return Value

Thread created
Remarks

Must be overridden by subclass and return a thread with an appropriate entry point, along with other preparation peculiar to your subclass. The typical final line might be
return new Thread(new ThreadStart(myEntryPoint));
where myEntryPoint is a method in your subclass with no arguments. This method should not be called in user code; it is called by the ThreadManager when its Add(ThreadWorker) method is invoked.
See Also