public OutputConditionPolled MakeNew(AgentInstanceContext agentInstanceContext) { ScheduleSpec scheduleSpec; try { var scheduleSpecParameterList = Evaluate(_expressions, agentInstanceContext); scheduleSpec = ScheduleSpecUtil.ComputeValues(scheduleSpecParameterList); } catch (ScheduleParameterException e) { throw new ArgumentException("Invalid schedule specification : " + e.Message, e); } var state = new OutputConditionPolledCrontabState(scheduleSpec, null, 0); return(new OutputConditionPolledCrontab(agentInstanceContext, state)); }
public OutputConditionPolledCrontab(AgentInstanceContext agentInstanceContext, OutputConditionPolledCrontabState state) { _agentInstanceContext = agentInstanceContext; _state = state; }