更新时间:2023-02-15 21:10:43
请参阅我之前的回答每1小时后重启一次计算机 [ ^ ]。
您可以将项目.exe添加到 Windows任务管理器然后设置频率和开始时间。
Refer my previous answer Restart computer after every 1 hour[^].
You can add a your project .exe to Windows Task Manager And then set frequency and start time.
I have just discovered that we only need to add Global.asax file (right click project in server explorer and Add New Item>> Add Global Application)
.ust put your email code in the file. When hosted, it runs through IIS, even though browser is closed.
您可以通过实现自定义模块来实现它
结账以下链接:
运行背景Web应用程序中的服务(在此过程中不涉及Windows服务) [ ^ ]
you can achieve it by implementing custom module
check out below link :
Running a background service in a Web Application (no Windows Service was involved during this process)[^]