Show / Hide Table of Contents

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
object
WebhookBannerQueue
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Webhooks
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
Type Name Description
string contextIdentifier
int associateId
WebhookBannerNotification notification

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
Type Description
WebhookBannerNotification[]

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
Type Description
bool
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top