ASP.NET WebHooks is a new addition to the ASP.NET group. Webhooks is a light weight HTTP pattern offering a simple pub or sub structure for wiring together Web APIs and SaaS services. When an event takes place in a service, a notification is sent as an HTTP POST request to the registered subscribers. The POST request consists of information about the event that makes it possible for the receiver to act accordingly.
Because of their ease of use and simplicity, WebHooks are exposed by a large number of services including, MailChimp, Dropbox, GitHub, PayPal, Slack and many others. A WebHook can show when a file has changed in Dropbox, or there has been a code change in GitHub, or if payment has been offered in PayPal. There are endless uses. Microsoft ASP.NET WebHooks make it easy to send and receive WebHooks as a part of your ASP.NET application.
For the receiving end, it offers a common structure for processing and receiving WebHooks from any number of the WebHook providers. It offers support for Trello, WordPress, Dropbox, GitHub, MailChimp, PayPal, Pusher, Slack, Stripe, and for more.
For the sending side, it offers support for managing and for storing subscriptions and also sends event notifications to the right subscribers. This lets you define your own set of events which subscribers can subscribe to and they are notified when events occur.
These two features can be used together or separately depending upon your requirements. If you just need to receive WebHooks from other services then you should use only the receiver part. But if you just want to provide WebHooks for others to consume, then you should do only that.
The code targets of ASP.NET Web API 2 and of ASP.NET MVC 5 are available as OSS on the GitHub and also as preview Nuget packages.
Sign up here with your email
ConversionConversion EmoticonEmoticon