C# Class Abbotware.Core.Threading.ScopedEventHandleGuard

Class that emulates RAII functionality around the System.Threading.EventWaitHandle
Inheritance: BaseComponent
Datei anzeigen Open project: abbotware/abbotware

Public Methods

Method Description
ScopedEventHandleGuard ( EventWaitHandle eventHandle, ILogger logger ) : System

Initializes a new instance of the ScopedEventHandleGuard class.

Protected Methods

Method Description
OnDisposeUnmanagedResources ( ) : void

Method Details

OnDisposeUnmanagedResources() protected method

protected OnDisposeUnmanagedResources ( ) : void
return void

ScopedEventHandleGuard() public method

Initializes a new instance of the ScopedEventHandleGuard class.
public ScopedEventHandleGuard ( EventWaitHandle eventHandle, ILogger logger ) : System
eventHandle EventWaitHandle mutex object the scoped guard is wrapping
logger ILogger injected logger
return System