예제 #1
0
        static void Main(string[] args)
        {
            var foo = new Foo();
            foo.Run();
            RunInSandbox(foo.Run);

            return;
            if (args.Length == 0) args = new[] {"localhost", "3000", "localhost", "3000"};

            var localIp = args[0];
            var localPort = int.Parse(args[1]);

            var agentServer = new AgentServer(localPort);
            var agentManager = new AgentManager(agentServer);

            if (args.Length == 4)
            {
                var targetIp = args[2];
                var targetPort = int.Parse(args[3]);
                var agent = new BoomerangAgent(localIp, localPort, targetIp, targetPort);
                agentManager.Register(agent);
            }
        }
예제 #2
0
파일: Agent.cs 프로젝트: JanVoracek/MAgNet
 internal void Resume(AgentManager agentManager)
 {
     Console.WriteLine("Resuming agent " + this);
     CurrentAgentManager = agentManager;
     ResumeCalculation();
 }