我使用的是Hangfire.AspNetCore和
ASP.NET Core v1.0.
据我所知,.NET Core的hangfire没有适当的sqlite驱动程序.
所以,我决定在没有任何仪表板的情况下工作.
所以,我配置的内容如下:
在Startup.cs中,在ConfigureServices方法中
services.AddHangfire(configuration => {});
在Configure方法中,我正在使用它
app.UseHangfireServer();
但我得到了下一个错误:
An exception of type 'System.InvalidOperationException' occurred in Hangfire.Core.dll but was not handled in user code Additional information: JobStorage.Current property value has not been initialized. You must set it before using Hangfire Client or Server API.
我不需要仪表板,所以我没有配置仪表板.
有人可以帮忙吗?