コード例 #1
0
        private static void Main(string[] args)
        {
#if DEBUG
            Console.WriteLine("Assortment importer console about to begin, continue?");
            Console.ReadLine();
            var importer = new Importer();
            importer.Start();
            Console.WriteLine("Debug - Assortment importer console running - press any key to stop");
            Console.ReadKey();
            importer.Stop();
#else
            ServiceBase[] ServicesToRun = new ServiceBase[] 
            { 
                new AssortmentService() 
            };
            ServiceBase.Run(ServicesToRun);
#endif
        }
コード例 #2
0
 public AssortmentService()
 {
     InitializeComponent();
     importer = new Importer();
 }
コード例 #3
0
 public AssortmentService()
 {
     InitializeComponent();
     importer = new Importer();
 }