Background automation tasks in .NET Core – sample web application using Hangfire

It is the second post about Hangfire, but this time I am using Hangfire in web application. And there is link to previous post about Hanfire in console application:Background automation tasks in .NET – sample console application using Hangfire I will show a simple web application using Hangfire to automate tasks. First, create a new project:Continue reading “Background automation tasks in .NET Core – sample web application using Hangfire”

Get data from appsettings.json file

I will show how to get your data from appsettings.json and e.g. show it on view. First, go to an appsettings.json and add the entry. In my case, I added:“Message”: “Message from appsettings.json” All appsettings.json code looks like this: Second step, changes to the controller, let’s take a sample HomeController. So inject IConfiguration in HomeControllerContinue reading “Get data from appsettings.json file”