3.8.2.2. Client Code Example

TcpChannel channel = new TcpChannel ();
ChannelServices.RegisterChannel (channel);

Example obj = (Example) Activator.GetObject (
  typeof (Example), "tcp://localhost:12345/Example");

obj.printMessage ("Hello World !");