Export (0) Print
Expand All

IInputChannel.BeginReceive Method

Begins an asynchronous receive operation.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method BeginReceive(AsyncCallback, Object) Begins an asynchronous operation to receive a message that has a state object associated with it.
Public method BeginReceive(TimeSpan, AsyncCallback, Object) Begins an asynchronous operation to receive a message that has a specified time out and state object associated with it.
Top

Use the asynchronous BeginReceive method when you want the application processing to continue without waiting for the request to be received. Use the synchronous Receive method when it is acceptable for the current thread to be blocked until the request message is received or the interval of time specified by the timeout has been exceeded. The asynchronous operation is available with or without an explicit timeout.

Show:
© 2014 Microsoft