コード例 #1
0
        static void Main(string[] args)
        {
#if DEBUG

            Console.WriteLine("ImagesImporter importer console about to begin, continue?");
            Console.ReadLine();
            var importer = new Importer();
            importer.Start();
            Console.WriteLine("Debug - ImagesImporter console running - press any key to stop");
            Console.ReadKey();
            importer.Stop();
#else
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] 
			{ 
				new ImagesImporterService() 
			};
            ServiceBase.Run(ServicesToRun);
#endif

        }
コード例 #2
0
 public ImagesImporterService()
 {
     InitializeComponent();
     importer = new Importer();
 }
コード例 #3
0
 public ImagesImporterService()
 {
     InitializeComponent();
     importer = new Importer();
 }