Posts a message to all subscribers of the sender type and allows the senders to overwrite undelivered messages.

Declaration Syntax
public static void PostMessage(
Object sender,
byte messageId,
Object message,
Object notificationArgument,
bool overwritePrevUndeliveredMessage
)
Public Shared Sub PostMessage ( _
sender As Object, _
messageId As Byte, _
message As Object, _
notificationArgument As Object, _
overwritePrevUndeliveredMessage As Boolean _
)

Parameters
- sender (Object)
- The sender of the message. The type of the sender is used to find the subscribers
- messageId (Byte)
- A sender defined message number
- message (Object)
- The message to be sent to the subscribers in a form of an object instance.
- notificationArgument (Object)
- Optional argument that will also be sent to all subscribers.
- overwritePrevUndeliveredMessage (Boolean)
- "true" to overwrite an existing not yet delivered message, which is already in the queue. If the message is not found a MessageNotFoundException will be thrown.

Exceptions
Assembly:
Acrux.Threading (Module: Acrux.Threading) Version: 1.0.0.0 (1.0.0.35)