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

A class that will update the heart beat field for a work item
Наследование: IHeartBeatWorker
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Dispose void
SendHeartBeat void
SendHeartBeatInternal void
SetCancel void

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

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

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

HeartBeatWorker ( IHeartBeatConfiguration configuration, IMessageContext context, ISendHeartBeat sendHeartBeat, IHeartBeatThreadPool threadPool, ILogFactory log, IWorkerHeartBeatNotificationFactory heartBeatNotificationFactory ) : System

Initializes a new instance of the HeartBeatWorker class.

Start ( ) : void

Starts this instance.

Stop ( ) : void

Stops this instance.

Stop is explicitly called when an error occurs, so that we can preserve the last heartbeat value. Implementations MUST ensure that stop blocks and does not return if the heartbeat is in the middle of updating.

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

Метод Описание
ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void
SendHeartBeat ( ) : void

Sends the heart beat.

SendHeartBeatInternal ( ) : void

Sends the heart beat.

SetCancel ( ) : void

Sets the cancel token to true

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

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

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

Initializes a new instance of the HeartBeatWorker class.
public HeartBeatWorker ( IHeartBeatConfiguration configuration, IMessageContext context, ISendHeartBeat sendHeartBeat, IHeartBeatThreadPool threadPool, ILogFactory log, IWorkerHeartBeatNotificationFactory heartBeatNotificationFactory ) : System
configuration IHeartBeatConfiguration The configuration.
context IMessageContext The context.
sendHeartBeat ISendHeartBeat The send heart beat.
threadPool IHeartBeatThreadPool The thread pool.
log ILogFactory The log.
heartBeatNotificationFactory IWorkerHeartBeatNotificationFactory The heart beat notification factory.
Результат System

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

Starts this instance.
public Start ( ) : void
Результат void

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

Stops this instance.
Stop is explicitly called when an error occurs, so that we can preserve the last heartbeat value. Implementations MUST ensure that stop blocks and does not return if the heartbeat is in the middle of updating.
public Stop ( ) : void
Результат void

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

Throws an exception if this instance has been disposed.
protected ThrowIfDisposed ( [ name = "" ) : void
name [ The name.
Результат void