SourceCode/jiouosdptask/Service1.cs
(完整代码) 1KBusing RFramework;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace Frame.TimerTask
{
public partial class Service1 : ServiceBase
{
public Service1()
{
InitializeComponent();
}
protected override void OnStart(string[] args)
{
Log.RWrite("OnStart");
//服务开启执行代码
}
protected override void OnStop()
{
Log.RWrite("OnStop");
//服务结束执行代码
}
protected override void OnPause()
{
Log.RWrite("OnPause");
//服务暂停执行代码
base.OnPause();
}
protected override void OnContinue()
{
Log.RWrite("OnContinue");
//服务恢复执行代码
base.OnContinue();
}
protected override void OnShutdown()
{
Log.RWrite("OnShutdown");
//系统即将关闭执行代码
base.OnShutdown();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。