private void Responses_QueueChanged(object sender, QueueChangedEventArgs <string> e) { try { if (e.Changed != QueueChangedEventArgs <string> .Change.Enqueued) { return; } if (e.Item.ToLower().Contains("arclsendtext")) { return; } if (e.Item.ToLower().Contains("alita")) { Application.Current.Dispatcher.Invoke(() => { var prikaz = RobotPrikaz.GetRobotPrikaz(e.Item); ZarizeniZasilaPrikaz?.Invoke(this, prikaz); }); } } catch (Exception exception) { string s = exception.Data.ToString(); } }
public void TestRobotPrikaz() { var robotPrikazProPorovnani = new RobotPrikaz(TypPrikazu.Trigger, "smtsklad", "open", 0); string temp = "alita_trigger_smtsklad_open_0"; var prikaz = RobotPrikaz.GetRobotPrikaz(temp); Assert.AreEqual(robotPrikazProPorovnani, prikaz); }
public async Task ZjistiDostupnaMacraAsync() { spustenyRobot.Connect(); List <string> odpovedi = await spustenyRobot.PrectiKomunikaciZArclServeru(); RobotPrikaz getMacros = new RobotPrikaz(TypPrikazu.Task, "getMacros", string.Empty); spustenyRobot.ProvedPrikaz(getMacros); var task = await spustenyRobot.PrectiKomunikaciZArclServeru(); Assert.IsTrue(task.Count > 0); }
public override void ProvedPrikaz(RobotPrikaz prikaz) { throw new NotImplementedException(); }
public override void ProvedPrikaz(RobotPrikaz prikaz) { RobotClient?.SendCommand(prikaz.ToString()); }
public abstract void ProvedPrikaz(RobotPrikaz prikaz);
public override void ProvedPrikaz(RobotPrikaz prikaz) { EnterpriseManagerClient?.SendCommand(prikaz.ToString()); }