Background Service and Blazor
Hi all, I wish to create a Service and a Blazor interface. Can someone help me get started?
That is a Service doing some work and a Blazor interface communicating with it.
I need help to choose the right project types.
7 Replies
what have you done so far?
I have not done anything yet. I need help to choose the right project types. I apologize for not mentioning it.
Appreciate you reaching out.
Using Rider on macOS but I think it is interchangeable with VS for Windows.
there is a lot of documentation and some tutorials here https://learn.microsoft.com/en-us/aspnet/core/blazor/?view=aspnetcore-8.0
Thank you – I've created the Blazor server side app now.
I need to create a Service which fetches data at intervals.
you could use anything from a hosted service with a timer to Hangfire or other job scheduling system
I'll be sure to check out hosted services, Hangfire and also to research other job scheduling systems.
Appreciate your help.
I need the Service to be running all the time. Do you know if this would be an issue if it is running under a Blazor app?
it depends on the hosting model
IIS can shut the site off after a period of inactivity unless you configure it not to