program.cs

来自「Listas ordenadas [ordered list]」· CS 代码 · 共 27 行

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

namespace chatserver
{
    static class Program
    {
        /// <summary>
        /// Punto de entrada principal para la aplicación.
        /// </summary>
        static void Main()
        {
            ServiceBase[] ServicesToRun;

            // Se puede ejecutar más de un servicio de usuario dentro del mismo proceso. Para agregar
            // otro servicio a este proceso, cambie la siguiente línea para
            // crear un segundo objeto de servicio. Por ejemplo,
            //
            //   ServicesToRun = new ServiceBase[] {new Service1(), new MySecondUserService()};
            //
            ServicesToRun = new ServiceBase[] { new Service1() };

            ServiceBase.Run(ServicesToRun);
        }
    }
}

⌨️ 快捷键说明

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