PrivMX DOCS
API Reference/PrivMX Endpoint C#/Core

EventQueue

Static Methods

GetInstance

Gets the event queue instance.

static EventQueue GetInstance()

Returns

EventQueue · Event queue instance.

Methods

EmitBreakEvent

Puts the LibBreakEvent event into the event queue.

This method is useful for interrupting a blocking WaitEvent() call and breaking an event processing loop.

void EmitBreakEvent()

GetEvent

Gets a new event from the queue.

Event? GetEvent()

Returns

Event? · A new event, or null if no events in the queue.

WaitEvent

Gets or waits for a new event from the queue.

Waiting can be canceled by EmitBreakEvent().

Event WaitEvent()

Returns

Event · A new event.

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.