예제 #1
0
 protected override void OnStart(string[] args)
 {
     stopped = false;
     while (!stopped)
     {
         DiscoverModules discoverModules = new DiscoverModules();
         discoverModules.Start();
         Thread.Sleep(100000);
     }
 }
예제 #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();
        }
예제 #3
0
        private static void Main(string[] args)
        {
            DiscoverModules discoverModules = new DiscoverModules();

            discoverModules.Start();
        }