home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / Remoting / MyHello / SimpleHelloNew.cs < prev    next >
Encoding:
Text File  |  2000-06-23  |  410 b   |  16 lines

  1. using System;
  2. using System.Runtime.Remoting;
  3. using HelloService;
  4.  
  5. public class SimpleHello
  6. {
  7.     public static void Main(String[] args)
  8.     {
  9.         String name = "Bill";    
  10.         RemotingServices.ConfigureRemoting("MyHello.cfg");
  11.         Hello hello = new Hello();
  12.         String result = hello.HelloMethod(name);
  13.         Console.WriteLine("Hello.HelloMethod returned: " + result);
  14.     }
  15. }
  16.