Class CrmScriptWebhookPlugin
Webhooks for CRM Scripts. Call the scripts identified by the include id.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Webhooks
Assembly: SoDataBase.dll
Syntax
[CustomWebhookPlugin("CrmScript")]
public class CrmScriptWebhookPlugin : ICustomWebhookPlugin
Constructors
CrmScriptWebhookPlugin()
Webhooks for CRM Scripts. Call the scripts identified by the include id.
Declaration
public CrmScriptWebhookPlugin()
Methods
NotifyAsync(Webhook, WebhookPayload, CancellationToken)
Broadcast the event to all subscribers, and mark failures/success status on the passed webhook objects.
Declaration
public Task<WebhookResponse> NotifyAsync(Webhook webhook, WebhookPayload eventInfo, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Webhook | webhook | Inform the given webhook that the event has occurred. |
WebhookPayload | eventInfo | Event name, unique id and details |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<WebhookResponse> | Success/Failure information. NULL is taken as SUCCESS |