C# Класс CodeSharp.EventSourcing.WorkerThread

Represents a worker thread that will repeatedly execute a callback.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Start ( ) : void

Starts the worker thread.

Stop ( ) : void

Stops the worker thread.

WorkerThread ( System methodToRunInLoop ) : System

Initializes a new WorkerThread for the specified method to run.

Защищенные методы

Метод Описание
Loop ( ) : void

Executes the delegate method until the Stop method is called.

Описание методов

Loop() защищенный Метод

Executes the delegate method until the Stop method is called.
protected Loop ( ) : void
Результат void

Start() публичный Метод

Starts the worker thread.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops the worker thread.
public Stop ( ) : void
Результат void

WorkerThread() публичный Метод

Initializes a new WorkerThread for the specified method to run.
public WorkerThread ( System methodToRunInLoop ) : System
methodToRunInLoop System The delegate method to execute in a loop.
Результат System