Преглед на файлове

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)
                             {