我们的web应用程序使用BackgroundJobClient.Create对作业进行排队,但是我们希望在一个单独的Windows服务中处理所有作业,而不是在我们的web应用程序中处理。You must set it before using Hangfire Client or Server API.看来,AddHangfire(options => ...UseSqlServerStorage(...) lambda在调用UseHangfireServer之前不会运行。作为一种解决办法,
Hangfire没有找到或解决它的项目程序集-all --尽管它有心跳。不知道是什么导致了这种情况,但仪表板还显示,应用程序每三分钟重新启动一次,这是不可能的,因为我们在一个同时被数百人使用的应用程序上使用了负载平衡器。System.InvalidOperationException: Recurring job can't be scheduled, see inner exception for details.
---> Hangfire.Common.JobLoadException(String typeName
在我们的应用程序中,我们有要在后台运行的Web队列作业。我们使用HangFire进行作业的后台处理。Web使用Windows身份验证。Hangfire服务器被配置为作为windows服务运行。var curUser = System.Security.Principal.WindowsIdentity.GetCurrent();
var id = Hangfire.BackgroundJob.Enqueu