protected override void OnStart(string[] args)
 {
     stopped = false;
     while (!stopped)
     {
         DiscoverModules discoverModules = new DiscoverModules();
         discoverModules.Start();
         Thread.Sleep(100000);
     }
 }
Beispiel #2
0
        private static void Main(string[] args)
        {
            System.Console.WriteLine("Starting stopwatch...");
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();

            DiscoverModules discoverModules = new DiscoverModules();

            discoverModules.Start();

            stopwatch.Stop();

            System.Console.WriteLine("Elapsed time - {0}:{1}:{2}.{3}", stopwatch.Elapsed.Hours,
                                     stopwatch.Elapsed.Minutes, stopwatch.Elapsed.Seconds, Environment.NewLine);
            System.Console.WriteLine("Press enter to quit...");
            System.Console.ReadLine();
        }
Beispiel #3
0
        private static void Main(string[] args)
        {
            DiscoverModules discoverModules = new DiscoverModules();

            discoverModules.Start();
        }