public void Start()
		{
			_pollThread = new Thread(() =>
			{
				var runner = new Runner();

				// You can add either a factory to generate Components from a configuration file or 
				// you can directly add a component programmatically
				runner.Add(new QueueAgentFactory());

				runner.SetupAndRun();

			});

			_pollThread.Start();
		}
Пример #2
0
        static int Main(string[] args)
        {
            try
            {
                Runner runner = new Runner();

                runner.Add(new NodeServerAgentFactory());

                runner.SetupAndRun();
            }
            catch (Exception ex)
            {
                Console.WriteLine("An exception has occurred.\n {0}", ex.Message);
                return -1;
            }

            return 0;
        }
Пример #3
0
        private static int Main(string[] args)
        {
            Logger.Info("Starting Plugin");
            try
            {
                var runner = new Runner();
                runner.Add(new EsbAgentFactory());
                runner.SetupAndRun();
            }
            catch (Exception e)
            {
                Logger.Error("Exception occurred, unable to continue.\n{0}",e.Message);
                return -1;
            }

            Logger.Info("Exiting Plugin");
            return 0;
        }
        static int Main(string[] args)
        {
            try
            {
                Runner runner = new Runner();

                runner.Add(new WikipediaAgentFactory());

                runner.SetupAndRun();
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception occurred, unable to continue.\n", e.Message);
                return -1;
            }

            return 0;
        }
        static int Main(string[] args)
        {
            try
            {
                CheckConfigFiles();
                Runner runner = new Runner();

                runner.Add(new VTMAgentFactory());

                runner.SetupAndRun();
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception occurred, unable to continue.\nMessage: {0}", e.Message);
                return -1;
            }

            return 0;
        }