zhuxingke
Results
1
comments of
zhuxingke
In the Service, I injected the background worker with dependency injection: await _notificationWorker.StopAsync(); // Modify the scheduled task expression _notificationWorker.CronExpression = Cron.Weekly((System.DayOfWeek)input.Weekly, input.SendTime.Hours, input.SendTime.Minutes); // Restart the worker await _notificationWorker.StartAsync();...