GetDeviceList() public method

public GetDeviceList ( TwainImpl twainImpl ) : List
twainImpl TwainImpl
return List
Example #1
0
 private IEnumerable <ScanDevice> GetDeviceList(TwainImpl twainImpl)
 {
     if (UseHostService)
     {
         return(x86HostServiceFactory.Create().TwainGetDeviceList(twainImpl));
     }
     return(twainWrapper.GetDeviceList(twainImpl));
 }
Example #2
0
        private IEnumerable <ScanDevice> GetFullDeviceList()
        {
            var twainImpl = ScanProfile != null ? ScanProfile.TwainImpl : TwainImpl.Default;

            if (UseHostService)
            {
                return(x86HostServiceFactory.Create().TwainGetDeviceList(twainImpl));
            }
            return(twainWrapper.GetDeviceList(twainImpl));
        }
Example #3
0
        private IEnumerable <ScanDevice> GetFullDeviceList()
        {
            var twainImpl = ScanProfile?.TwainImpl ?? TwainImpl.Default;

            if (UseWorker)
            {
                using (var worker = workerServiceFactory.Create())
                {
                    return(worker.Service.TwainGetDeviceList(twainImpl));
                }
            }
            return(twainWrapper.GetDeviceList(twainImpl));
        }