C# Class FloatingQueue.Common.Common.ThreadBase

显示文件 Open project: eleks/FloatingQueuePoC

Public Methods

Method Description
Start ( Action threadFailedHandler ) : void
Stop ( ) : void
Wait ( ) : void

Protected Methods

Method Description
OnThreadFailed ( Exception e ) : void
RunCore ( ) : void
Sleep ( System.TimeSpan ts ) : void
Sleep ( int mSec ) : void
StartCore ( ) : void
StopCore ( ) : void
ThreadBase ( string threadName = null ) : System

Private Methods

Method Description
Run ( ) : void

Method Details

OnThreadFailed() protected method

protected OnThreadFailed ( Exception e ) : void
e System.Exception
return void

RunCore() protected abstract method

protected abstract RunCore ( ) : void
return void

Sleep() protected method

protected Sleep ( System.TimeSpan ts ) : void
ts System.TimeSpan
return void

Sleep() protected method

protected Sleep ( int mSec ) : void
mSec int
return void

Start() public method

public Start ( Action threadFailedHandler ) : void
threadFailedHandler Action
return void

StartCore() protected method

protected StartCore ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

StopCore() protected method

protected StopCore ( ) : void
return void

ThreadBase() protected method

protected ThreadBase ( string threadName = null ) : System
threadName string
return System

Wait() public method

public Wait ( ) : void
return void