22 lines
674 B
C#
22 lines
674 B
C#
using RobotApp.Interfaces;
|
|
|
|
namespace RobotApp.Services.Robot.Actions;
|
|
|
|
public class RobotDropAction(IServiceProvider ServiceProvider) : RobotAction(ServiceProvider)
|
|
{
|
|
protected override async Task StartAction()
|
|
{
|
|
await Task.Delay(2000);
|
|
Scope ??= ServiceProvider.CreateAsyncScope();
|
|
var LoadManager = Scope.ServiceProvider.GetRequiredService<ILoad>();
|
|
LoadManager.ClearLoad();
|
|
Status = VDA5050.State.ActionStatus.FINISHED;
|
|
ResultDescription = AgvAction is null ? ResultDescription : AgvAction.ResultDescription;
|
|
}
|
|
|
|
protected override Task ExecuteAction()
|
|
{
|
|
return base.ExecuteAction();
|
|
}
|
|
}
|