1、面板记录保存时间设置:
//配置Hangfire
services.AddHangfire(option => { option.UseStorage(new MySqlStorage(configuration["ConnectionStrings:Default"], new MySqlStorageOptions { JobExpirationCheckInterval = TimeSpan.FromDays(7) })); });