protected virtual void Dispose(bool disposing) { if (!disposed) { CloseDevice(); hThread = null; } disposed = true; }
public HidReader(string deviceName, string devicePath, DataReadCallback callback) { if (callback == null) { throw new ArgumentNullException("callback"); } // Create an instance of HidThread that will manage async reading from the device hThread = new HidThread(deviceName, devicePath, callback, OnThreadException); }
public HidReader(string deviceName, string devicePath, DataReadCallback callback) { if (callback == null) throw new ArgumentNullException("callback"); // Create an instance of HidThread that will manage async reading from the device hThread = new HidThread(deviceName, devicePath, callback, OnThreadException); }