Просмотр исходного кода

refactor: 将 ExecutePhoto 同步调用重构为 ExecutePhotoAsync 异步调用

zly 2 месяцев назад
Родитель
Сommit
b38d16494a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      TeamAAS-VM/Core/Management.cs

+ 1 - 1
TeamAAS-VM/Core/Management.cs

@@ -2816,7 +2816,7 @@ namespace TeamAAS_VP.Core
                             var _cts = new CancellationTokenSource();
 
                             await _remoteCommandService.SetLightBeforePhoto(FzCameraProcess);
-                            var FzCameraResult = _remoteCommandService.ExecutePhoto(FzCameraProcess, out CogToolBlockTerminalCollection outputCollection);
+                            var (FzCameraResult, outputCollection) = await _remoteCommandService.ExecutePhotoAsync(FzCameraProcess);
 
                             if (FzCameraResult)
                             {