Hangfire 仪表板更改刷新期

时间:2021-04-02 10:10:51

标签: ajax signalr hangfire

Hangfire dashboard 向服务器发送ajax请求刷新数据: like this

正如您在图片上看到的那样,它会发送统计信息请求。每次它向数据库发出请求。可以在配置中或以其他方式更改请求数吗?因为现在是经常。

1 个答案:

答案 0 :(得分:0)

您可以在仪表板选项中更改轮询间隔,设置以毫秒为单位。参考this

app.UseHangfireDashboard("/hangfire", new DashboardOptions
 {
 StatsPollingInterval = 60000
 });