Receives a message from the participant's mailbox. Blocks the current thread until a message arrives.
Namespace: AGI.Parallel.Infrastructure
Assembly: AGI.Parallel.Infrastructure (in AGI.Parallel.Infrastructure.dll) Version: 1.2.0.275 (1.2.0.275)

Syntax

C#
Object ReceiveMessage(
        int millisecondsTimeout
)
Visual Basic
Function ReceiveMessage ( _
        millisecondsTimeout As Integer _
) As Object

Parameters

millisecondsTimeout
Type: System..::..Int32
The number of milliseconds to wait, or System.Threading.Timeout.Infinite (-1) to wait indefinitely.

Return Value

The message. null if timeout is elapsed.

See Also