public async Task <IActionResult> Get() { var updateJob = new ScheduleUpdate(_settings); await updateJob.Update(); return(await Task.Run(() => Ok())); }
public Startup(IConfiguration configuration) { Configuration = configuration; //Thread thread = new Thread(new ThreadStart(Function)); //thread.IsBackground = true; //thread.Name = "Function"; //thread.Start(); ScheduleUpdate.Update(); }