I'm using IIOP.NET to communicate with C++ in C#. Currently C++ calls ca开发者_StackOverflow社区n happen anytime, since C# Remoting Framework uses its own thread.
I don't want that.
Some other middleware gives me a callback, and I'm only allowed to execute the CORBA functions during this callback (and probably on the same stack, so simply synchronizing threads won't work).
So :
Is there a way to do something like that in C# Remoting :
while(1) {
processPendingRequests();
}
Instead of Thread.Sleep(Timeout.Infinite)
? Or maybe is there another way?
精彩评论