InputPortTMessageEnqueued Event

Called before the message has been enqueued to the port. The arguments to the event are the sending port and the message being enqueued.

Definition

Namespace: Quine.Graph
Assembly: Quine.Graph (in Quine.Graph.dll) Version: 1.0.0+0ea0706914ee4edf2b0ed66bec3ab4d062a43b68
C#
public event Action<IInputPort, GraphMessage> MessageEnqueued

Value

ActionIInputPort, GraphMessage

Implements

IInputPortMessageEnqueued

Remarks

The main purpose of this event is signaling progress / adding to the message's processing history. Therefore the event is called before enqueueing the message to avoid the race condition where the dequeueing thread could append "Accepted" to the hisory before the enqueueing thread has managed to append "Queued" to the history.

See Also