C# Class GSF.Threading.ThreadContainerBase

显示文件 Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
StartDisposal ( ) : void

Same as Start() except notifies on the callback during a race condition that this is the one that was first to schedule the task.

StartSlower ( ) : void
StartSlower ( int delay ) : void

Protected Methods

Method Description
InternalCancelTimer ( ) : void
InternalDispose_FromWorkerThread ( ) : void
InternalDoNothing_FromWorkerThread ( ) : void
InternalStart ( ) : void
InternalStart ( int delay ) : void
InternalStart_FromWorkerThread ( ) : void
InternalStart_FromWorkerThread ( int delay ) : void
OnRunning ( ) : void
Shutdown ( ) : void
ThreadContainerBase ( Action callback, System.Action disposeAndWaitCallback, bool disposeOnShutdown ) : System

Private Methods

Method Description
IgnoreShutdownEvent ( ) : void

For foreground threads, a shutdown handler is registered to dispose of the Thread so it doesn't keep the process running. However, for the Logger, shutting down this thread will prevent shutdown messages from showing up in the logger. By calling this method, it declares that the coder will dispose of this class when it is finished and does not want the Shutdown handler to do it.

Start ( ) : void
Start ( int delay ) : void

Method Details

InternalCancelTimer() protected abstract method

protected abstract InternalCancelTimer ( ) : void
return void

InternalDispose_FromWorkerThread() protected abstract method

protected abstract InternalDispose_FromWorkerThread ( ) : void
return void

InternalDoNothing_FromWorkerThread() protected abstract method

protected abstract InternalDoNothing_FromWorkerThread ( ) : void
return void

InternalStart() protected abstract method

protected abstract InternalStart ( ) : void
return void

InternalStart() protected abstract method

protected abstract InternalStart ( int delay ) : void
delay int
return void

InternalStart_FromWorkerThread() protected abstract method

protected abstract InternalStart_FromWorkerThread ( ) : void
return void

InternalStart_FromWorkerThread() protected abstract method

protected abstract InternalStart_FromWorkerThread ( int delay ) : void
delay int
return void

OnRunning() protected method

protected OnRunning ( ) : void
return void

Shutdown() protected method

protected Shutdown ( ) : void
return void

StartDisposal() public method

Same as Start() except notifies on the callback during a race condition that this is the one that was first to schedule the task.
public StartDisposal ( ) : void
return void

StartSlower() public method

public StartSlower ( ) : void
return void

StartSlower() public method

public StartSlower ( int delay ) : void
delay int
return void

ThreadContainerBase() protected method

protected ThreadContainerBase ( Action callback, System.Action disposeAndWaitCallback, bool disposeOnShutdown ) : System
callback Action
disposeAndWaitCallback System.Action
disposeOnShutdown bool
return System