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