C# Class GSF.IO.OutageLogProcessor

Represents a thread-safe OutageLog processor that will operate on each Outage with a consumer provided function on independent threads.
Inheritance: IDisposable
Mostra file Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

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

Private Methods

Method Description
ProcessNextItem ( ) : void
outageLog_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Method Details

Dispose() public method

Releases all the resources used by the OutageLogProcessor object.
public Dispose ( ) : void
return void

Dispose() protected method

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.
return void

OutageLogProcessor() public method

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.
return System