开发者

Custom main loop in C# Remoting

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜