소스 검색

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

zly 2 달 전
부모
커밋
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();
                             var _cts = new CancellationTokenSource();
 
 
                             await _remoteCommandService.SetLightBeforePhoto(FzCameraProcess);
                             await _remoteCommandService.SetLightBeforePhoto(FzCameraProcess);
-                            var FzCameraResult = _remoteCommandService.ExecutePhoto(FzCameraProcess, out CogToolBlockTerminalCollection outputCollection);
+                            var (FzCameraResult, outputCollection) = await _remoteCommandService.ExecutePhotoAsync(FzCameraProcess);
 
 
                             if (FzCameraResult)
                             if (FzCameraResult)
                             {
                             {