Esempio n. 1
0
        public override bool Execute(AgentInput input)
        {
            Console.WriteLine($"AGENT: Running the StorytellerAgent at port {input.Port} with system {input.System.GetType().Name}");

            EventAggregator.Messaging.AddListener(this);

            _engine = new EngineAgent(input.Port, input.System);
            _engine.PreStart(); // From this point messages may start being received.

            _completion.WaitOne();

            return(true);
        }