GetDeviceList() публичный Метод

public GetDeviceList ( TwainImpl twainImpl ) : List
twainImpl TwainImpl
Результат List
Пример #1
0
 private IEnumerable <ScanDevice> GetDeviceList(TwainImpl twainImpl)
 {
     if (UseHostService)
     {
         return(x86HostServiceFactory.Create().TwainGetDeviceList(twainImpl));
     }
     return(twainWrapper.GetDeviceList(twainImpl));
 }
Пример #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));
        }
Пример #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));
        }