Class CrmScriptWebhookPlugin
Webhooks for CRM Scripts. Call the scripts identified by the include id.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Webhooks
Assembly: SoDataBase.BusinessLogic.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)
Send the webhook to the CrmScript system, via a ServiceFacade.CallServiceAsync call
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 |