Initial commit

This commit is contained in:
2026-07-03 16:31:37 +07:00
commit 899c7c637d
1939 changed files with 641750 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using RobotNet.VDA5050.Type;
using RobotNet10.RobotApp.Interfaces;
namespace RobotNet10.RobotApp.Services.Robot.Actions;
[RobotAction(ActionType.START_PAUSE,
[ActionScope.INSTANT],
[BlockingType.NONE, BlockingType.SOFT, BlockingType.HARD],
"Tam dừng robot.",
"Robot đã tạm dừng.")]
public class RobotStartPauseAction(IServiceProvider ServiceProvider) : RobotAction(ServiceProvider)
{
protected override Task StartAction()
{
var RobotController = ServiceProvider.GetRequiredService<IRobotController>();
RobotController.Pause();
SetStatus(ActionEvent.FINISHED);
ResultDescription = string.IsNullOrEmpty(ActionAttribute.ResultDescription) ? ResultDescription : ActionAttribute.ResultDescription;
return base.StartAction();
}
protected override Task ExecuteAction()
{
return base.ExecuteAction();
}
}