Tutorial topic: Consume and delegate webhooks with a custom web application
- Payroll Engine Backend running
- SQL Server with Hangfire database
- Visual Studio with .NET 8
- Tutorial: Console Application
- Webhook receiver endpoint
- Webhook message processing
- Background job processing with Hangfire
- Start the Payroll Engine Backend
- Setup Hangfire SQL Server database
- new empty database
WebhookDemo
- new empty database
- Configure hangfire database connection
appsettings.jsonor better usersecrets.json:
"ConnectionStrings": { "HangfireConnection": "Server=localhost;Database=WebhookDemo;Integrated Security=SSPI;" }
- Start project WebhookConsumer
- the first run creates the hangfire SQL database schema
- Import the webhook payroll using
Payroll\Import.pecmd- json output:
https://localhost:44396/webhooks - hangfire jobs:
https://localhost:44396/hangfire
- json output: