[英]How to stop Hangfire process on IIS?
I'm using ASP.NET Zero (MVC 5) v5.0.0 with Hangfire and everything is working well. 我将Hangoutfire与ASP.NET Zero(MVC 5)v5.0.0搭配使用 ,一切运作正常。
As shown in this link , I have setup Hangfire to run as a separate Windows Service. 如该链接所示,我已将Hangfire设置为作为单独的Windows服务运行。
The problem is, I can't seem to stop the Hangfire process on IIS. 问题是,我似乎无法停止IIS上的Hangfire进程。
Normally, one can stop it by commenting out this statement: 通常,可以通过注释掉以下语句来停止它:
// app.UseHangfireServer();
But I can't find the equivalent statement. 但是我找不到等效的陈述。
Using ASP.NET Zero template, is there any way to stop Hangfire process on IIS? 使用ASP.NET Zero模板,有什么方法可以停止IIS上的Hangfire进程吗?
Thanks in advance. 提前致谢。
You can uncomment these hangfire setup for AspNetZero. 您可以取消注释AspNetZero的这些hangfire设置。
Web.Core Project Web。核心项目
https://github.com/aspnetzero/aspnet-zero-core/blob/29ce1d485ad7955591fa8a97d1d446340c5986e4/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Core/AbpZeroTemplateWebCoreModule.cs#L78 https://github.com/aspnetzero/aspnet-zero-core/blob/29ce1d485ad7955591fa8a97d1d446340c5986e4/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Core/AbpZeroTemplateWebCoreModule.cs#L78
Web.Host Project Web.Host项目
https://github.com/aspnetzero/aspnet-zero-core/blob/29ce1d485ad7955591fa8a97d1d446340c5986e4/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/Startup/Startup.cs#L185 https://github.com/aspnetzero/aspnet-zero-core/blob/29ce1d485ad7955591fa8a97d1d446340c5986e4/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/Startup/Startup.cs#L185
Web.Mvc Project Web.Mvc项目
https://github.com/aspnetzero/aspnet-zero-core/blob/f72d4bf9ced778e06265f1c415a8553b10cbaf3d/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/Startup/Startup.cs#L161 https://github.com/aspnetzero/aspnet-zero-core/blob/f72d4bf9ced778e06265f1c415a8553b10cbaf3d/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/Startup/Startup.cs#L161
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.