Prior to this release, all service requests issued on an Eagle service client completed synchronously i.e. the thread invoking the request method blocks and waits for the response to come back before returning to the caller. This release implements the capability to do asynchronous request-reply. To perform asynchronous request-reply, the user would invoke the OperationRequestAsync method (newly generated in this release) which is the async request method corresponding to the synchronous OperationRequest method (generated prior to this release). The method would send the request and immediately return to the caller. To asynchronously receive the response for the request, the client should provide the object containing @EventHandler methods to handle the response messages to the Client constructor. This would result in the response messages being asynchronously dispatched to the registered handlers. The OperationRequest methods continue to be generated for synchronously request-reply invocation of service methods. |