コード例 #1
0
 public void TestCameraProvider()
 {
     var provider = new TestService();
     var importService = new ImportService(provider, new FileSystemService(), new LogService(), new DateTimeService());
     var deviceManagerClass = new DeviceManagerClass();
     var deviceInfo = deviceManagerClass.DeviceInfos.Cast<DeviceInfo>().FirstOrDefault(p => string.Equals(p.DeviceID, provider.GetSettings().DeviceId, StringComparison.OrdinalIgnoreCase));
     var device = deviceInfo.Connect();
     importService.Import(new CameraPhotoProvider(device), null, null);
 }