C#C
C#4y ago
ssernikk

Get data from api periodically

Hi everyone, I am making a blazor server web app, and i have to get data from api every 10 seconds and save it to database and update index.razor page with that data.
The question is, how can i get that data? I have to create service with timer and add it to services in program.cs? and which timer should i use?
Thanks for help!
Was this page helpful?