GSF.Core by Grid Protection Alliance

<PackageReference Include="GSF.Core" Version="2.2.86-beta" />

.NET API 1,146,464 bytes

 DisposableLoggingClassBase

public abstract class DisposableLoggingClassBase : IDisposable
A helper class that implements IDisposable that will raise log messages when this class is not properly disposed of.
protected LogPublisher Log { get; }

The LogPublisher for logging messages.

protected DisposableLoggingClassBase(MessageClass messageClassification)

Creates a DisposableLoggingClassBase

protected void CheckDisposed()

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

public void Dispose()

Releases all the resources used by the DisposableLoggingClassBase object.

protected virtual void Dispose(bool disposing)

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