Remoting at University of Western Ontario
Presented .NET Remoting to about 300 students at the University of Western Ontario last night. The lucky attendees also got to see a relatively new build on Windows code-name Longhorn, with some new UI changes over the PDC build, including facial recognition capabilities.
The demo code that I wrote in the parking lot included a windows forms calculator that called a remote obj (remoteobj) class. The listener is a server application (windows forms) and also a console application on a different port. We use the console application so we can confirm the calls being received by the remote object...
We used programmatic registration of the well-known type in the server (listener) code:
System.Runtime.Remoting.Channels.Tcp.TcpChannel chan = new System.Runtime.Remoting.Channels.Tcp.TcpChannel(7890);
We are listening for TCP requests on port 7890 for a call to the end-point Calc on RemoteObj.Class1
Stay tuned for more fun.
Also, make sure that you subscribe to the MSDN Flash to ensure you get the latest information about events, etc.