C#C
C#3y ago
Isotop7

❔ Blazor web app in console

Hi,

I currently write a small project that utilizes a console application on my server, thats running several tasks in the backend. One of these tasks is listening on mqtt messages and putting them in a database.

Now I want to extend this project with a web app to run CRUD operations on the database. I want the blazor page to be spawned in my main program.cs thats already spawning all other tasks. Do I need to create a separate repo for this? Is there any other alternative as this would lead to duplicated code (DbContext, Models, etc.)
Was this page helpful?