C# Class GSF.Diagnostics.DisposableLoggingClassBase

A helper class that implements IDisposable that will raise log messages when this class is not properly disposed of.
Inheritance: IDisposable
Mostra file Open project: GridProtectionAlliance/gsf

Protected Methods

Method Description
CheckDisposed ( ) : void

Checks if the class has been disposed, throws an exception if this is the case.

DisposableLoggingClassBase ( MessageClass messageClassification ) : System

Creates a DisposableLoggingClassBase

Dispose ( bool disposing ) : void

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

Private Methods

Method Description
Dispose ( ) : void
ThrowDisposed ( ) : void

Method Details

CheckDisposed() protected method

Checks if the class has been disposed, throws an exception if this is the case.
protected CheckDisposed ( ) : void
return void

DisposableLoggingClassBase() protected method

Creates a DisposableLoggingClassBase
protected DisposableLoggingClassBase ( MessageClass messageClassification ) : System
messageClassification MessageClass
return System

Dispose() protected method

Releases the unmanaged resources used by the DisposableLoggingClassBase 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