RobotApp/RobotApp/Services/Robot/Actions/RobotMutedBaseOnAction.cs
Đăng Nguyễn a01f140f2e update
2025-10-24 10:24:59 +07:00

20 lines
536 B
C#

using RobotApp.Interfaces;
namespace RobotApp.Services.Robot.Actions;
public class RobotMutedBaseOnAction(IServiceProvider ServiceProvider) : RobotAction(ServiceProvider)
{
protected override Task StartAction()
{
Scope ??= ServiceProvider.CreateAsyncScope();
var RobotSafety = Scope.ServiceProvider.GetRequiredService<ISafety>();
RobotSafety.SetMutedBase(true);
return base.StartAction();
}
protected override Task ExecuteAction()
{
return base.ExecuteAction();
}
}