public KmsUsbDeviceRequestAsync(KmsUsbDevice device, KMS.Interop.Blockity.BlockityCommand <T> command) { if (device == null) { throw new ArgumentNullException("device"); } if (!device.IsOpen) { throw new InvalidOperationException("Device is closed."); } m_worker.DoWork += m_worker_DoWork; m_worker.RunWorkerCompleted += m_worker_RunWorkerCompleted; m_worker.RunWorkerAsync(new Object[] { device, command }); }
public KmsUsbDeviceRequestAsync <T> RequestAsync <T>(KMS.Interop.Blockity.BlockityCommand <T> command) { return(new KmsUsbDeviceRequestAsync <T>(this, command)); }
public T Request <T>(KMS.Interop.Blockity.BlockityCommand <T> command, Int32 timeout = 0) { return(Request <T>(m_device, command, timeout)); }