使用C#写一个Windows服务

CSDN头条 2年前 (2022) csdnhot
1.1K 0

内容简介:

创建服务程序

可能你的VS里面没有【Windows服务】这个模板,那么你就需要通过“打开Visual Studio安装程序“,通过VisualStudio Installer来通过“修改”来安装【.NET桌面开发】 通过上面两个地方均可以进入对应的代码文件
public partial class Service1 : ServiceBase
{
public Service1()
{
InitializeComponent();
}

protected override void OnStart(string[] args)
{
Console.Wr...

查看原文

? 使用C#写一个Windows服务

版权声明:csdnhot 发表于 2022-12-15 18:47:21。
转载请注明:使用C#写一个Windows服务 | 程序员导航网

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...