internal void UnregisterConnection(RemotingConnectionImpl connection) { lock (_connections) { _connections.Remove(connection.ConnectionId); } }
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; }
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); }