Ejemplo n.º 1
0
 internal bool RegisteredOperationalSocket(OperationalSocket opSocket)
 {
     lock (Connection.RegisteredOperationalSockets)
     {
         return Connection.RegisteredOperationalSockets.ContainsKey(opSocket.GetIdentifier());
     }
 }
Ejemplo n.º 2
0
 public void RegisterOperationalSocket(OperationalSocket opSocket)
 {
     lock (Connection.RegisteredOperationalSockets)
     {
         if (Connection.RegisteredOperationalSockets.ContainsKey(opSocket.GetIdentifier()))
             throw new Exception("This operational socket is already registered, conflict?");
         Connection.RegisteredOperationalSockets.Add(opSocket.GetIdentifier(), opSocket.GetType());
     }
 }