Please I need help in implementing web hook receiver in ASP.Net Application
Web Hook Implementation in .Net Core
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Please I need help in implementing web hook receiver in ASP.Net Application
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pasang TamangRank #449 · 5.6K reputationPosted Dec 28, 2022, 3:58 AM EST
Hi,
Here is nice documentation about WebHook receiver
https://learn.microsoft.com/en-us/aspnet/webhooks/receiving/receivers
Regards,
Pasang
John IwaszRank #811 · 2.8K reputationPosted Dec 28, 2022, 10:37 AM EST
Using the Microsoft.AspNetCore.WebHooks.Receivers package is not a good idea as it's deprecated. Setting up a controller to receive a web hook request is generally the same as setting up any other web api controller. Testing it is the hard part as you need the sender to generate a request that lands on your webhook. That requires some configuration on the sender to point it to your development URL. If the provider is a service like Twilio or Github, you will need to authenticate the request and that process should be covered in documentation.
To test, you can use a free instance of ngrok. It creates a public endpoint that you can register on the service that routes to a port on your dev environment.
You can register the public ngork URL with your service provider and then any messages generated are forwarded to your dev endpoint running on a local port.