public void removeConnectionAcceptor(RpcConnectionAcceptor acceptor) { lock (_acceptors) { _acceptors.Remove(acceptor); acceptor.adapter = null; } }
public void addConnectionAcceptor(RpcConnectionAcceptor acceptor) { lock (_acceptors) { if (!_acceptors.Contains(acceptor)) { acceptor.adapter = this; _acceptors.Add(acceptor); } } }