public void Run() { Started.Set(); EventStarted?.Invoke(this); Finished.Set(); ContiniousBlockCompleted.Set(); EventFinished?.Invoke(this); }
private void OnSpaceReceived(int nid) { if (nid != CommandId) { return; } ContiniousBlockCompleted.Set(); }
public void Run() { Started.Set(); EventStarted?.Invoke(this); if (manager != null) { manager.SyncCoordinates(globalPosition); } Finished.Set(); ContiniousBlockCompleted.Set(); EventFinished?.Invoke(this); }
private void OnDroppedHdl(int nid) { if (nid != CommandId) { return; } Logger.Instance.Debug(this, "dropped", nid.ToString()); ContiniousBlockCompleted.Set(); Started.Set(); Finished.Set(); EventFinished?.Invoke(this); }
public void Run() { Started.Set(); EventStarted?.Invoke(this); foreach (var reg in toolCommand.Registers) { sender.WriteRegister(reg.DeviceId, reg.RegisterId, reg.RegisterValue); } if (toolCommand.Delay > 0) { Thread.Sleep(toolCommand.Delay); } Finished.Set(); ContiniousBlockCompleted.Set(); EventFinished?.Invoke(this); }