1、面板记录保存时间设置:

 //配置Hangfire
services.AddHangfire(option => {
    option.UseStorage(new MySqlStorage(configuration["ConnectionStrings:Default"], 
    new MySqlStorageOptions { JobExpirationCheckInterval = TimeSpan.FromDays(7) }));
});

 

posted on 2019-08-05 15:06  花开花落-2014  阅读(496)  评论(0编辑  收藏  举报