Class WebhookBannerQueue
Thread-safe in-memory queue of pending webhook banner notifications per associate.
Populated by SuperOffice.CRM.Webhooks.DefaultWebhookPlugin on a background
thread; drained by SoWebhookNotificationServerEventPlugin on the next
server-event poll for the associate's session.
Inheritance
WebhookBannerQueue
Assembly: SoDataBase.dll
Syntax
public static class WebhookBannerQueue
Methods
Enqueue(string, int, WebhookBannerNotification)
Thread-safe in-memory queue of pending webhook banner notifications per associate.
Populated by SuperOffice.CRM.Webhooks.DefaultWebhookPlugin on a background
thread; drained by SoWebhookNotificationServerEventPlugin on the next
server-event poll for the associate's session.
Declaration
public static void Enqueue(string contextIdentifier, int associateId, WebhookBannerNotification notification)
Parameters
PeekAll(string, int)
Returns a snapshot of all pending notifications without removing them.
Returns an empty array when there is nothing pending.
Declaration
public static WebhookBannerNotification[] PeekAll(string contextIdentifier, int associateId)
Parameters
| Type |
Name |
Description |
| string |
contextIdentifier |
|
| int |
associateId |
|
Returns
TryDequeueOne(string, int)
Removes a single notification from the front of the queue.
Used by SoWebhookNotificationServerEventPlugin.EndExecute to drain exactly
the items that were peeked, leaving any that arrived after the peek for the next poll.
Declaration
public static bool TryDequeueOne(string contextIdentifier, int associateId)
Parameters
| Type |
Name |
Description |
| string |
contextIdentifier |
|
| int |
associateId |
|
Returns