The Labs \ Source Viewer \ SSCLI \ System.Runtime.Remoting.Channels \ IAuthorizeRemotingConnection

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. //==========================================================================
  16. // File: RemotingAuthentication.cs
  17. //
  18. // Summary: Defines public types and helpers for remoting channel authentication
  19. //
  20. // Classes:
  21. //
  22. //==========================================================================
  23. using System.Net;
  24. using System.Net.Security;
  25. using System.Security.Principal;
  26. namespace System.Runtime.Remoting.Channels
  27. {
  28.     // SocketCachePolicy decides the socketCache timeout behaviour
  29.     public enum SocketCachePolicy
  30.     {
  31.         // Default means v1.0 behaviour (relative timeouts)
  32.         Default = 0,
  33.        
  34.         // AbsoluteTimeout means sockets would be timedout after absolute time
  35.         AbsoluteTimeout = 1
  36.     }
  37.    
  38.     // Authorization interface to add auth support for TCP
  39.     public interface IAuthorizeRemotingConnection
  40.     {
  41.         bool IsConnectingEndPointAuthorized(EndPoint endPoint);
  42.         bool IsConnectingIdentityAuthorized(IIdentity identity);
  43.     }
  44.    
  45. }

Developer Fusion