-
Notifications
You must be signed in to change notification settings - Fork 24
Events and Callbacks
Hagen Siegel edited this page Apr 25, 2021
·
7 revisions
CoreRemoting has built-in support for events and callbacks.
A client can pass delegates as parameters when invoking a method of a remote service via a proxy. If the service invokes the delegate, it is called on the remote client. Just as when calling a local delegate, the executing thread waits until the delegate execution has been completed and the result to be returned.
The lifetime of client delegates, that are passed to remote services, is bound to the ServiceProxy object that is used on client side to access the remote service. Client delegates are no longer callable from remote services, after the proxy has be disposed.