home *** CD-ROM | disk | FTP | other *** search
- //==========================================================================
- // File: HelloService.cs
- //
- // Summary: This file implements HelloService class for NGWS Remoting
- //
- //
- // Classes: Hello class in HelloService namespace
- //
- // Functions: HelloMethod
- //
- //--------------------------------------------------------------------------
- // This file is part of the Microsoft NGWS Samples.
- //
- // Copyright (C) 2000 Microsoft Corporation. All rights reserved.
- //==========================================================================
-
-
- using System;
-
- namespace HelloService
- {
- // Well Known WebService Object
- public class Hello : MarshalByRefObject
- {
- // Return the name prefixed with a string
- public String HelloMethod(String name)
- {
- Console.WriteLine("Hello.HelloMethod : {0}", name);
- return "Hi there " + name;
- }
- }
- }
-