home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / FL_EventSinkHost_cs________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Text File  |  2002-06-17  |  1.4 KB  |  42 lines

  1. /*=====================================================================
  2.  
  3.   File:      EventSinkHost.cs
  4.  
  5. ---------------------------------------------------------------------
  6. This file is part of the Microsoft .NET Framework SDK Code Samples.
  7.  
  8.   Copyright (C) Microsoft Corporation.  All rights reserved.
  9.  
  10. This source code is intended only as a supplement to Microsoft
  11. Development Tools and/or on-line documentation.  See these other
  12. materials for detailed information regarding Microsoft code samples.
  13.  
  14. THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  15. KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  16. IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  17. PARTICULAR PURPOSE.
  18. =====================================================================*/
  19.  
  20. using System;
  21. using System.Runtime.Remoting;
  22. using System.Runtime.Remoting.Channels;
  23. using System.Runtime.Remoting.Channels.Http;
  24.  
  25. using Zap;
  26. using Wak;
  27.  
  28. public class Client
  29. {
  30.     public static void Main(String[] args)
  31.     {
  32.         // Register the wellknown server type. 
  33.         RemotingConfiguration.Configure("eventsinkhost.exe.config");        
  34.  
  35.         // We are done, wait until the user wants to exit
  36.         Console.WriteLine("Host is ready to process remote messages.");
  37.         Console.WriteLine("Press ENTER to exit");
  38.         String keyState = Console.ReadLine();
  39.     
  40.     }
  41. }
  42.