示例#1
0
 internal void UnregisterConnection(RemotingConnectionImpl connection)
 {
     lock (_connections)
     {
         _connections.Remove(connection.ConnectionId);
     }
 }
示例#2
0
 internal void UnregisterConnection(RemotingConnectionImpl connection)
 {
     lock (_connections)
     {
         _connections.Remove(connection.ConnectionId);
     }
 }
示例#3
0
 public IRemotingConnection NewClient(object credentials, out object token)
 {
     object subject;
     _securityProvider.Authenticate(credentials, out subject, out token);
     string connectionId = Guid.NewGuid().ToString();
     var connection = new RemotingConnectionImpl(_server, _securityProvider, this, connectionId, subject, _bufferSize );
     lock (_connections)
     {
         _connections.Add(connectionId, connection);
     }
     return connection;
 }
示例#4
0
        public IRemotingConnection NewClient(object credentials, out object token)
        {
            object subject;

            _securityProvider.Authenticate(credentials, out subject, out token);
            string connectionId = Guid.NewGuid().ToString();
            var    connection   = new RemotingConnectionImpl(_server, _securityProvider, this, connectionId, subject, _bufferSize);

            lock (_connections)
            {
                _connections.Add(connectionId, connection);
            }
            return(connection);
        }