/// <summary> /// Runs the command. /// </summary> /// <param name="command">The command.</param> /// <param name="request">The request.</param> /// <returns></returns> public AutomationResult RunCommand(CommandType command, AutomationRequest request) { var engine = TypeContainer.Current.Resolve <IAutomationEngine>(); var retval = engine.ExecuteCommand(command, request) as AutomationResult; return(retval); }
public IEnumerable <Automation> GetAll() { var request = new AutomationRequest(); return(ExecuteGetRequest <Automations>("automation_list", request).Data.OrderBy(x => x.Id)); }