Defines the interface that a channel must implement to receive a message.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The contract includes synchronous and asynchronous variants of receive, try-to-receive and wait-for-a-message functionality.
The pull model is used typically with an to receive messages: you call Receive (to "pull" a message out of the channel) and then wait for a message to arrive. An alternative usage pattern is to call BeginWaitForMessage(TimeSpan, AsyncCallback, Object) or BeginWaitForMessage(TimeSpan, AsyncCallback, Object), and then call Receive(TimeSpan). This approach is common for transactional usages where you start the transaction between the calls to WaitForMessage(TimeSpan) and Receive.
An is not necessarily bound to a single sender. Other channels and channel interfaces can provide a correlation between particular senders and an , but the base contract makes no such restriction. An implementation can create a new for each message or reuse the same for multiple messages and senders.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.