Browse Source

修复停止问题

feature/x1-web-request
root 2 days ago
parent
commit
d66f90fd61
  1. 3
      src/X1.Application/Features/DeviceRuntimes/Commands/StopDeviceRuntime/StopDeviceRuntimeCommandHandler.cs
  2. 9
      src/X1.Domain/Entities/Device/CellularDeviceRuntime.cs

3
src/X1.Application/Features/DeviceRuntimes/Commands/StopDeviceRuntime/StopDeviceRuntimeCommandHandler.cs

@ -211,9 +211,6 @@ public class StopDeviceRuntimeCommandHandler : IRequestHandler<StopDeviceRuntime
};
}
// 停止设备
deviceRuntime.Stop();
// 创建运行时详情
var detail = CellularDeviceRuntimeDetail.Create(
deviceCode,

9
src/X1.Domain/Entities/Device/CellularDeviceRuntime.cs

@ -72,13 +72,4 @@ public class CellularDeviceRuntime : BaseEntity
NetworkStackCode = networkStackCode;
RuntimeCode = runtimeCode;
}
/// <summary>
/// 停止设备
/// </summary>
public void Stop()
{
RuntimeStatus = DeviceRuntimeStatus.Stopping;
RuntimeCode = null;
}
}
Loading…
Cancel
Save