File: channels\core\remotingauthentication.cs
Project: ndp\clr\src\managedlibraries\remoting\System.Runtime.Remoting.csproj (System.Runtime.Remoting)
// ==++==
//
//   Copyright (c) Microsoft Corporation.  All rights reserved.
//
// ==--==
//==========================================================================
//  File:          RemotingAuthentication.cs
//
//  Summary:    Defines public types and helpers for remoting channel authentication
//
//  Classes:      
//
//==========================================================================
using System.Net;
using System.Net.Security;
using System.Security.Principal;
 
namespace System.Runtime.Remoting.Channels
{
    // SocketCachePolicy decides the socketCache timeout behaviour
    public enum SocketCachePolicy
    {
        // Default means v1.0 behaviour (relative timeouts)
        Default = 0,
 
        // AbsoluteTimeout means sockets would be timedout after absolute time
        AbsoluteTimeout = 1
    }
 
    // Authorization interface to add auth support for TCP
    public interface IAuthorizeRemotingConnection
    {
        bool IsConnectingEndPointAuthorized(EndPoint endPoint);
        bool IsConnectingIdentityAuthorized(IIdentity identity);
    }
 
}