C# Класс GSF.IO.OutageLogProcessor

Represents a thread-safe OutageLog processor that will operate on each Outage with a consumer provided function on independent threads.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

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

Releases all the resources used by the OutageLogProcessor object.

OutageLogProcessor ( OutageLog outageLog, Action processOutageFunction, bool>.Func canProcessOutageFunction, Action processExceptionHandler, int processingInterval ) : System

Creates a OutageLogProcessor using a pre-initialized OutageLog.

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

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

Releases the unmanaged resources used by the OutageLogProcessor object and optionally releases the managed resources.

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

Метод Описание
ProcessNextItem ( ) : void
outageLog_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

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

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

Releases all the resources used by the OutageLogProcessor object.
public Dispose ( ) : void
Результат void

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

Releases the unmanaged resources used by the OutageLogProcessor object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

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

Creates a OutageLogProcessor using a pre-initialized OutageLog.
public OutageLogProcessor ( OutageLog outageLog, Action processOutageFunction, bool>.Func canProcessOutageFunction, Action processExceptionHandler, int processingInterval ) : System
outageLog OutageLog Pre-initialized to process.
processOutageFunction Action A delegate that defines a processing function for an .
canProcessOutageFunction bool>.Func A delegate that determines if an can currently be processed.
processExceptionHandler Action Delegate to handle any exceptions encountered while processing as .
processingInterval int Processing interval, in milliseconds.
Результат System