浏览代码

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

zly 3 月之前
父节点
当前提交
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)
                             {