I'm using Remoting to perform some IPC communication, and have the following question:
When I invoke delegates to gather data server-side, it is possible to have an event fired on the client when an IAsyncResult is gathered?
The following code is in VC++, but .net code is .net code.
GetFileTextDelegate ^svd = gcnew GetFileTextDelegate(obj, &BaseRemoteObject::GetFileText);
IAsyncResult ^arValSet = svd->BeginInvoke(nullptr, nullptr);
String ^result = svd->EndInvoke(arValSet);
In this example, the last line of code will just lock the current thread until the Invoke is completed. Is it possible to just subsbribe to a "IAsyncResult_Completed" event, or something similar?
Thanks