Hi there. Yeah i figured that out in the end. Thanks anyway.
I tried searching google but was not too clear what was going on so i didnt really know what to search for.
Has anyone tried creating a remoting framework to abstract backend processing from. I am trying to do that and am wondering what the performance would be like with multiple clients
Srihari Angaluri wrote:
You need to derive the client and server from MarshalByRefObject. When you subscribe the client to receive events from the server it seems that your client is marshalled by value, and hence it is serialized and sent to the server. The event handler is therefore executed on the server side, instead of the client. If you derive the client from MarshalByRefObject, the server will receive a reference (in the semantic sense) to the event handler class, and the handler will be executed on the client side.
Srihari
On Sun, 10 Oct 2004, [EMAIL PROTECTED] wrote:
Hi there.
I am having trouble with remoting events.
I have a server class that exposes an event. The event subscribers are notified of change when this server state changes. ON the client i subscribe to the servers event using your stock standard remoted proxy. However when the event fires, it appears that the client object is serialized to the server and is executed on the server.
That sounds weird as i would expect that the method would call a method on the client, and not copy the object back to the server and fire there.
Can anyone help me as to weather i maybe doing something wrong, and point me in the right direction. I want the event to fire on the client gui and not on the server.
Regards Dan
=================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in:
Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles http://www.develop.com/courses/edotnet
View archives and manage your subscription(s) at http://discuss.develop.com
=================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in:
Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles http://www.develop.com/courses/edotnet
View archives and manage your subscription(s) at http://discuss.develop.com
=================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in:
Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles http://www.develop.com/courses/edotnet
View archives and manage your subscription(s) at http://discuss.develop.com
