aspnet / WebHooks

[Archived] Libraries to create and consume web hooks on ASP.NET Core. Project moved to https://github.com/aspnet/AspLabs
Apache License 2.0
627 stars 439 forks source link

How do we pause/unpause Webhook #117

Closed renjurajt closed 6 years ago

renjurajt commented 7 years ago

What is the api or method for pause or unpause a existing webhook ?

HenrikFrystykNielsen commented 7 years ago

The WebHook structure has a field for whether a WebHook is paused or not, see WebHook.cs. Either the owner of the subscription or you as the service should be able to update the registration to set if it is paused or not. If paused then it won't be returned in queries from the IWebHookStore.cs.

Hope this helps!

Henrik

renjurajt commented 7 years ago

Thanks Henrik, so if we update IsPaused in Registration, Webhook will not trigger for those registrations.

HenrikFrystykNielsen commented 7 years ago

yes, that's correct!

dougbu commented 6 years ago

Questions in this issue have been answered.