【发布时间】:2018-10-02 14:27:21
【问题描述】:
我正在使用带有Hangfire 的 ASP.NET Zero (MVC 5) v5.0.0,一切运行良好。
如link 所示,我已将 Hangfire 设置为作为单独的 Windows 服务运行。
问题是,我似乎无法停止 IIS 上的 Hangfire 进程。
通常,可以通过注释掉以下语句来阻止它:
// app.UseHangfireServer();
但我找不到等效的语句。
使用 ASP.NET Zero 模板,有什么方法可以停止 IIS 上的 Hangfire 进程?
提前致谢。
【问题讨论】:
-
在Startup.cs中,默认注释掉。
-
感谢您的回复@aaron,实际上我在 Startup.cs 中找不到它,而是找到了这个声明
app.UseHangfireDashboard负责显示仪表板。我认为这个声明app.UseHangfireServer();在 ABPHangFire 模块 中的某个位置 -
我需要停止 IIS 上的挂起进程,因为我已将它安装在单独的 Windows 服务上。 @约翰
-
您在查看哪个 Startup.cs?
-
此路径中的那个 MyCompanyName.AbpZeroTemplate.Web\App_Start\Startup.cs
标签: c# asp.net-mvc-5 aspnetboilerplate hangfire