AsyncWcfLib

WcfBasicClientAsync.SendOut(IWcfMessage, AsyncResponseHandler) Method

Send a message to the service. Do not wait here for the response.

The response is asynchronously passed to the extension method "On", normally used as asyncResponseHandler.

If the sending thread has a message queue, the response is executed by the same thread as the send operation was.

If the response could not be handled by the On-extension methods, the default OnWcfMessageReceivedDelegate passed to TryConnect() is called.

Example:

Send (request, rsp => rsp.On<WcfIdleMessage>(idle => {do something with idle message 'idle'})

.On<WcfErrorMessage>(err => {do something with error message 'err'}));

public WcfReqIdent SendOut(
   IWcfMessage request,
   AsyncResponseHandler asyncResponseHandler
);

Parameters

request
The message to send.
asyncResponseHandler
On(T)

See Also

WcfBasicClientAsync Class | SourceForge.AsyncWcfLib.Basic Namespace | WcfBasicClientAsync.SendOut Overload List