Example #1
0
        public ProcessHandler(IEnumerable<IGameChecker> gameCheckers)
        {
            running = true;

            this.gameCheckers = new List<IGameChecker>(gameCheckers);

            finder = new SimpleProcessFinder();
            finder.ProcessStarted += finder_ProcessStarted;
            finder.ProcessStopped += finder_ProcessStopped;
            Console.WriteLine("EVT | Initial sweep");
            initialSweep = true;
            finder.FindAll();
            initialSweep = false;
            Console.WriteLine("EVT | Initial sweep complete");
            Console.WriteLine("EVT | Initial affinity assignment");
            AssignGameMode();
            Console.WriteLine("EVT | Initial affinity assignment complete");
        }
Example #2
0
        public ProcessHandler(IEnumerable <IGameChecker> gameCheckers)
        {
            running = true;

            this.gameCheckers = new List <IGameChecker>(gameCheckers);

            finder = new SimpleProcessFinder();
            finder.ProcessStarted += finder_ProcessStarted;
            finder.ProcessStopped += finder_ProcessStopped;
            Console.WriteLine("EVT | Initial sweep");
            initialSweep = true;
            finder.FindAll();
            initialSweep = false;
            Console.WriteLine("EVT | Initial sweep complete");
            Console.WriteLine("EVT | Initial affinity assignment");
            AssignGameMode();
            Console.WriteLine("EVT | Initial affinity assignment complete");
        }