.Net Remoting返回值区分来自不同线程的调用

时间:2021-02-06 15:39:41

I have inherited a middle tier system with some multi-Threading issues.
Two different threads, running in the same method of the same instance of a class, are making the same calls to a .Net Remoting server...

我继承了一个具有一些多线程问题的中间层系统。两个不同的线程,在同一个类实例的相同方法中运行,正在对.Net Remoting服务器进行相同的调用......

Does the proxy on the client side know how to route the return values from the remoting server to the correct thread? Are separate client side proxies created for the calls from each thread, even though they're being called from the same instance? Does the proxy (or proxies) on the client side know how to route the return values from the remoting server to the correct thread?

客户端的代理是否知道如何将返回值从远程处理服务器路由到正确的线程?是否为每个线程的调用创建了单独的客户端代理,即使它们是从同一个实例调用的?客户端上的代理(或代理)是否知道如何将返回值从远程处理服务器路由到正确的线程?

1 个解决方案

#1


0  

Remoting will automatically route the returns from each call to the calling thread. You don't need to worry about it beyond your normal multi-threaded concerns. Just treat them like normal method calls.

远程处理将自动将每次调用的返回路由到调用线程。除了正常的多线程问题之外,您无需担心它。只需像普通方法调用一样对待它们。

Are you having a specific problem or are you just worried?

你有特定的问题还是只是担心?

#1


0  

Remoting will automatically route the returns from each call to the calling thread. You don't need to worry about it beyond your normal multi-threaded concerns. Just treat them like normal method calls.

远程处理将自动将每次调用的返回路由到调用线程。除了正常的多线程问题之外,您无需担心它。只需像普通方法调用一样对待它们。

Are you having a specific problem or are you just worried?

你有特定的问题还是只是担心?