protected override async Task ExecuteAsync(CancellationToken cancellationToken) { while (!cancellationToken.IsCancellationRequested) { await query.InserValues(); await Task.Delay(TimeSpan.FromMinutes(30), cancellationToken); } }
public async Task <IActionResult> GetAsync() { var result = await query.InserValues(); return(Ok(new Response(result))); }