How to implement a Webhook listener using c#?

I want to implement a web listener to grab the posted array data from the webhook url.
I have came across two ways to do this.
1. using IHttpHandler to handle the http request.
2. using wcf rest webservice to grab the request.

I also found that this can be done using a HttpListener but was unable to find a proper sample implementation.

Can anyone suggest the best way to do the above task and provide some references where I use to start the implementation.

Thank you.

Source: .net

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.