C# Class DotNetWorkQueue.Queue.WorkerBase

The base worker class that the actual workers inherit from
Inheritance: IWorkerBase
Afficher le fichier Open project: blehnen/DotNetWorkQueue

Protected Properties

Свойство Type Description
WorkerThread Thread

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

AttemptToTerminate() public méthode

Attempts to terminate the worker thread.
public AttemptToTerminate ( ) : bool
Résultat bool

Dispose() public méthode

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

RaiseSystemException() protected méthode

Raises the system exception.
protected RaiseSystemException ( Exception error ) : void
error System.Exception The error.
Résultat void

RaiseSystemException() protected méthode

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

RaiseSystemMessageException() protected méthode

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

RaiseUserException() protected méthode

Raises the user exception.
protected RaiseUserException ( Exception error ) : void
error System.Exception The error.
Résultat void

RaiseUserException() protected méthode

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

RaiseUserMessageException() protected méthode

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

Start() public abstract méthode

Starts this instance.
public abstract Start ( ) : void
Résultat void

Stop() public abstract méthode

Stops this instance.
public abstract Stop ( ) : void
Résultat void

ThrowIfDisposed() protected méthode

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

TryForceTerminate() public abstract méthode

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

WorkerBase() protected méthode

Initializes a new instance of the WorkerBase class.
protected WorkerBase ( WorkerTerminate workerTerminate ) : System
workerTerminate WorkerTerminate The worker terminate.
Résultat System

Property Details

WorkerThread protected_oe property

protected Thread WorkerThread
Résultat Thread