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
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

Private Methods

Méthode Description
ProcessNextItem ( ) : void
outageLog_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Method Details

Dispose() public méthode

Releases all the resources used by the OutageLogProcessor object.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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.
Résultat void

OutageLogProcessor() public méthode

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.
Résultat System