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

Syntax

C#
public Object ReceiveMessage(
        int millisecondsTimeout,
        out Guid sender
)
Visual Basic
Public Function ReceiveMessage ( _
        millisecondsTimeout As Integer, _
        <OutAttribute> ByRef sender As Guid _
) As Object

Parameters

millisecondsTimeout
Type: System..::..Int32
The number of milliseconds to wait, or System.Threading.Timeout.Infinite (-1) to wait indefinitely.
sender
Type: System..::..Guid%
The address of the sender of the message.

Return Value

The message. null if timeout is elapsed

Implements

IMessageEndpoint..::..ReceiveMessage(Int32, Guid%)

See Also