C# Class SevenDigital.Messaging.Infrastructure.ThreadWatcher

Thread watcher
Show file Open project: i-e-b/SevenDigital.Messaging Class Usage Examples

Public Methods

Method Description
ThreadWatcher ( Thread threadToWatch, System.Action onEnd ) : System

Watch a thread, and perform an action when it ends

Private Methods

Method Description
IsValidAndRunning ( Thread threadToWatch ) : bool
ThreadLoop ( ) : void

Method Details

ThreadWatcher() public method

Watch a thread, and perform an action when it ends
public ThreadWatcher ( Thread threadToWatch, System.Action onEnd ) : System
threadToWatch Thread Thread to watch
onEnd System.Action Action to perform when thread exits
return System