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

  1. //==========================================================================
  2. //  File:       HelloService.cs
  3. //
  4. //  Summary:    This file implements HelloService class for NGWS Remoting
  5. //                       
  6. //
  7. //  Classes:    Hello class in HelloService namespace
  8. //
  9. //  Functions:  HelloMethod
  10. //
  11. //--------------------------------------------------------------------------
  12. //  This file is part of the Microsoft NGWS Samples.
  13. //
  14. //  Copyright (C) 2000 Microsoft Corporation.  All rights reserved.
  15. //==========================================================================
  16.  
  17.  
  18. using System;
  19.  
  20. namespace HelloService
  21. {
  22.     // Well Known WebService Object
  23.     public class Hello : MarshalByRefObject
  24.     {
  25.          // Return the name prefixed with a string
  26.         public String HelloMethod(String name) 
  27.         {
  28.             Console.WriteLine("Hello.HelloMethod : {0}", name);                        
  29.             return "Hi there " + name;
  30.         }
  31.      }
  32. }
  33.