Ejemplo n.º 1
0
 public OutputConditionPolledExpression(
     OutputConditionPolledExpressionFactory factory,
     OutputConditionPolledExpressionState state,
     AgentInstanceContext agentInstanceContext,
     ObjectArrayEventBean builtinProperties)
 {
     _factory              = factory;
     _state                = state;
     _builtinProperties    = builtinProperties;
     _agentInstanceContext = agentInstanceContext;
 }
Ejemplo n.º 2
0
        public OutputConditionPolled MakeNew(AgentInstanceContext agentInstanceContext)
        {
            ObjectArrayEventBean builtinProperties = null;
            long?lastOutputTimestamp = null;

            if (_oatypeBuiltinProperties != null)
            {
                builtinProperties   = new ObjectArrayEventBean(OutputConditionExpressionTypeUtil.OAPrototype, _oatypeBuiltinProperties);
                lastOutputTimestamp = agentInstanceContext.StatementContext.SchedulingService.Time;
            }
            var state = new OutputConditionPolledExpressionState(0, 0, 0, 0, lastOutputTimestamp);

            return(new OutputConditionPolledExpression(this, state, agentInstanceContext, builtinProperties));
        }