开发者

Custom main loop in C# Remoting

开发者 https://www.devze.com 2023-03-03 18:37 出处:网络
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'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?

0

精彩评论

暂无评论...
验证码 换一张
取 消