nicoriff / ORMi

A Light-ORM for accesing WMI
MIT License
209 stars 28 forks source link

Implement IDisposable pattern in WMIWatcher class #24

Closed magalhaesleo closed 4 years ago

magalhaesleo commented 4 years ago

The class WMIWatcher contains a field ManagementEventWatcher that is disposable.

It's possible change WMIWatcher to dispose the ManagementEventWatcher field and stop watcher for new events when the object WMIWatcher is finalized?

nicoriff commented 4 years ago

Hi there. Done. WMIWatcher has now support for IDisposable

magalhaesleo commented 4 years ago

Thanks