开发者

How to awake and enable clients of .NET Remoting server for fetch data asynchronously?

开发者 https://www.devze.com 2023-01-16 20:39 出处:网络
I need to perform inter process communication using .NET Remoting. For this I would share some data in form of Data(Objects) & Methods .

I need to perform inter process communication using .NET Remoting. For this I would share some data in form of Data(Objects) & Methods .

Is there any way out by which my .NET Remoting client can detect that there's some data that is being shared or not, if its just go on and collect that data.Each time server server shares the data with its shared able methods and objects by Marshaling, it should be get aware for client that's another process.

Server can have multiple clients and data can be shared in multiple clients(specific clients or broadcast i.e for every client that is running as separate process).

On client side I would have single dedicated thread for chec开发者_如何学Pythonking shared data, if it arrive it would collect, sleep otherwise. Or somehow each time server sends and event to specific client or multiple clients to make them aware about arrived and shared data.

Is this is the functionality what .NET Remoting Events expose? My .NET Remoting server is C# process and client is C++/CLI processes.

Regards Usman


That is possible with .NET Remoting. Perhaps the easiest way would be to have the remote object (the server) include an event to which clients can subscribe. When the server has data that it wishes to share, it just fires that event and any clients that subscribe to the event get a notification along with the data.

0

精彩评论

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

关注公众号