Exemple #1
0
        protected override async Task ExecuteAsync(CancellationToken cancellationToken)
        {
            while (!cancellationToken.IsCancellationRequested)
            {
                await query.InserValues();

                await Task.Delay(TimeSpan.FromMinutes(30), cancellationToken);
            }
        }
Exemple #2
0
        public async Task <IActionResult> GetAsync()
        {
            var result = await query.InserValues();

            return(Ok(new Response(result)));
        }