コード例 #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     var svc = new DeploymentService(args);
     if (!Environment.UserInteractive)
     {
         Logger = new EventLogger();
         ServiceBase.Run(svc);
     }
     else
     {
         svc.Start();
         svc.Stop();
     }
 }
コード例 #2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            var svc = new DeploymentService(args);

            if (!args.ToList().Contains("--interactive"))
            {
                Logger = new EventLogger();
                ServiceBase.Run(svc);
            }
            else
            {
                svc.Start();
                svc.Stop();
            }
        }
コード例 #3
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            var svc = new DeploymentService(args);

            if (!Environment.UserInteractive)
            {
                Logger = new EventLogger();
                ServiceBase.Run(svc);
            }
            else
            {
                svc.Start();
                svc.Stop();
            }
        }