© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
4 replies
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!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Get Data from Table api c#
C#CC# / help
3y ago
❔ Producer Consumer ISourceBlock<T>, periodically flushing consumed data
C#CC# / help
4y ago
✅ Getting data from api on app startup?
C#CC# / help
3y ago
Best practice for return data from API
C#CC# / help
3y ago