Interface ICustomWebhookPlugin
Webhooks for custom systems. There may be several of these per system - these are not prioritized. All of them are instantiated and processed by the webhook dispatcher WebhookManager. Plugins must be marked with the CustomWebhookPluginAttribute to be found by the class factory.
Namespace: SuperOffice.CRM.Webhooks
Assembly: SoDataBase.dll
Syntax
public interface ICustomWebhookPlugin : IPlugin
Methods
Notify(Webhook, WebhookPayload)
Broadcast the event to all subscribers, and mark failures/success status on the passed webhook objects.
Declaration
WebhookResponse Notify(Webhook webhook, WebhookPayload eventInfo)
Parameters
Type | Name | Description |
---|---|---|
Webhook | webhook | Inform the given webhook that the event has occurred. |
WebhookPayload | eventInfo | Event name, unique id and details |
Returns
Type | Description |
---|---|
WebhookResponse | Success/Failure information. NULL is taken as SUCCESS |
Extension Methods
EnumUtil.MapEnums<From, To>(From)