Example #1
0
        public void Init(string configFile)
        {
            foreach (var engineAgent in _agentManager.FilterEngineAgentForInternalAPI(-729436854))
            {
                _engineAgentsById.Add(engineAgent.Id, engineAgent);

                foreach (var detail in Agent.getAgentDetails(engineAgent))
                {
                    if (detail.Key.Equals(-729436854))
                    {
                        foreach (var stateMachineCode in detail.Value)
                        {
                            if (!_engineAgentsByStateMachine.ContainsKey(stateMachineCode))
                            {
                                _engineAgentsByStateMachine.Add(stateMachineCode, new List <EngineAgent>());
                            }

                            _engineAgentsByStateMachine[stateMachineCode].Add(engineAgent);
                        }
                    }
                }
            }
        }