How to run .net Core IHosted Service at specific time Of the day?

I am having the following Timer to run in .Net core Ihosted Service, TimeSpan ScheduledTimespan; string[] formats = { @”hh\:mm\:ss”, “hh\\:mm” }; string strTime = Startup.Configuration[“AppSettings:JobStartTime”].ToString(); var success = TimeSpan.TryParseExact(strTime, formats, CultureInfo.InvariantCulture, out ScheduledTimespan); Timer _timer = new Timer(JobToRun, null, TimeSpan.Zero, ScheduledTimespan); I’m using this specific overload, public Timer(TimerCallback callback, object state, TimeSpan dueTime, TimeSpan…

Details