コード例 #1
0
        public async Task <IActionResult> Get()
        {
            var updateJob = new ScheduleUpdate(_settings);
            await updateJob.Update();

            return(await Task.Run(() => Ok()));
        }
コード例 #2
0
        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;

            //Thread thread = new Thread(new ThreadStart(Function));
            //thread.IsBackground = true;
            //thread.Name = "Function";
            //thread.Start();
            ScheduleUpdate.Update();
        }