C# Класс DotNetWorkQueue.Queue.WorkerBase

The base worker class that the actual workers inherit from
Наследование: IWorkerBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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