Show / Hide Table of Contents

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

Methods

NotifyAsync(Webhook, WebhookPayload, CancellationToken)

Broadcast the event to all subscribers, and mark failures/success status on the passed webhook objects.

Declaration
Task<WebhookResponse> NotifyAsync(Webhook webhook, WebhookPayload eventInfo, CancellationToken cancellationToken = default)
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

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top