internal static void RegisterAcceptor(string key, LocalAcceptor acceptor) { lock (OpenConnections) { OpenConnections[key] = acceptor; } }
internal static bool IsRegistered(string key, LocalAcceptor acceptor) { LocalAcceptor v; if (!OpenConnections.TryGetValue(key, out v)) { return false; } return v == acceptor; }