C# 클래스 DotNetWorkQueue.Queue.WorkerBase

The base worker class that the actual workers inherit from
상속: IWorkerBase
파일 보기 프로젝트 열기: blehnen/DotNetWorkQueue

보호된 프로퍼티들

프로퍼티 타입 설명
WorkerThread Thread

공개 메소드들

메소드 설명
AttemptToTerminate ( ) : bool

Attempts to terminate the worker thread.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Start ( ) : void

Starts this instance.

Stop ( ) : void

Stops this instance.

TryForceTerminate ( ) : void

Forces the worker to terminate. This method should not return until the worker has shutdown.

보호된 메소드들

메소드 설명
RaiseSystemException ( Exception error ) : void

Raises the system exception.

RaiseSystemException ( object sender, WorkerErrorEventArgs e ) : void

Raises the system exception.

RaiseSystemMessageException ( object sender, MessageErrorEventArgs e ) : void

Raises the system message exception.

RaiseUserException ( Exception error ) : void

Raises the user exception.

RaiseUserException ( object sender, WorkerErrorEventArgs e ) : void

Raises the user exception.

RaiseUserMessageException ( object sender, MessageErrorEventArgs e ) : void

Raises the user message exception.

ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

WorkerBase ( WorkerTerminate workerTerminate ) : System

Initializes a new instance of the WorkerBase class.

메소드 상세

AttemptToTerminate() 공개 메소드

Attempts to terminate the worker thread.
public AttemptToTerminate ( ) : bool
리턴 bool

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

RaiseSystemException() 보호된 메소드

Raises the system exception.
protected RaiseSystemException ( Exception error ) : void
error System.Exception The error.
리턴 void

RaiseSystemException() 보호된 메소드

Raises the system exception.
protected RaiseSystemException ( object sender, WorkerErrorEventArgs e ) : void
sender object The sender.
e WorkerErrorEventArgs The instance containing the event data.
리턴 void

RaiseSystemMessageException() 보호된 메소드

Raises the system message exception.
protected RaiseSystemMessageException ( object sender, MessageErrorEventArgs e ) : void
sender object The sender.
e MessageErrorEventArgs The instance containing the event data.
리턴 void

RaiseUserException() 보호된 메소드

Raises the user exception.
protected RaiseUserException ( Exception error ) : void
error System.Exception The error.
리턴 void

RaiseUserException() 보호된 메소드

Raises the user exception.
protected RaiseUserException ( object sender, WorkerErrorEventArgs e ) : void
sender object The sender.
e WorkerErrorEventArgs The instance containing the event data.
리턴 void

RaiseUserMessageException() 보호된 메소드

Raises the user message exception.
protected RaiseUserMessageException ( object sender, MessageErrorEventArgs e ) : void
sender object The sender.
e MessageErrorEventArgs The instance containing the event data.
리턴 void

Start() 공개 추상적인 메소드

Starts this instance.
public abstract Start ( ) : void
리턴 void

Stop() 공개 추상적인 메소드

Stops this instance.
public abstract Stop ( ) : void
리턴 void

ThrowIfDisposed() 보호된 메소드

Throws an exception if this instance has been disposed.
protected ThrowIfDisposed ( [ name = "" ) : void
name [ The name.
리턴 void

TryForceTerminate() 공개 추상적인 메소드

Forces the worker to terminate. This method should not return until the worker has shutdown.
public abstract TryForceTerminate ( ) : void
리턴 void

WorkerBase() 보호된 메소드

Initializes a new instance of the WorkerBase class.
protected WorkerBase ( WorkerTerminate workerTerminate ) : System
workerTerminate WorkerTerminate The worker terminate.
리턴 System

프로퍼티 상세

WorkerThread 보호되어 있는 프로퍼티

protected Thread WorkerThread
리턴 Thread