IOutputChannel.EndSend(IAsyncResult) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Completes an asynchronous operation to transmit a message to the destination of the output channel.
public:
void EndSend(IAsyncResult ^ result);
public void EndSend (IAsyncResult result);
abstract member EndSend : IAsyncResult -> unit
Public Sub EndSend (result As IAsyncResult)
Parameters
- result
- IAsyncResult
The IAsyncResult returned by a call to the BeginSend method.
Examples
The following code illustrates how to implement this method:
public bool TryReceiveRequest(TimeSpan timeout, out RequestContext requestContext)
{
bool result;
while (true)
{
result = this.InnerChannel.TryReceiveRequest(timeout, out requestContext);
if (!result || ProcessRequestContext(ref requestContext))
{
break;
}
}
return result;
}
Remarks
If the message sent is larger that the maximum message size allowed by the binding being used, a QuotaExceededException is thrown. The maximum message size is set by the MaxReceivedMessageSize property. The default value is 65536 bytes.