Esempio n. 1
0
        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 });
        }
Esempio n. 2
0
 public KmsUsbDeviceRequestAsync <T> RequestAsync <T>(KMS.Interop.Blockity.BlockityCommand <T> command)
 {
     return(new KmsUsbDeviceRequestAsync <T>(this, command));
 }
Esempio n. 3
0
 public T Request <T>(KMS.Interop.Blockity.BlockityCommand <T> command, Int32 timeout = 0)
 {
     return(Request <T>(m_device, command, timeout));
 }