program.cs

来自「C#高级编程第6版随书源代码 值得下载」· CS 代码 · 共 27 行

CS
27
字号
using System.Collections.Generic;
using System.ServiceProcess;
using System.Text;

namespace Wrox.ProCSharp.WinServices
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            // ServiceBase[] ServicesToRun;

            // More than one user Service may run within the same process. To add
            // another service to this process, change the following line to
            // create a second service object. For example,
            //
            //   ServicesToRun = new ServiceBase[] {new Service1(), new MySecondUserService()};
            //
            // ServicesToRun = new ServiceBase[] { new QuoteService() };

            ServiceBase.Run(new QuoteService());
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?