Example #1
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());
     }
 }
Example #2
0
 internal bool RegisteredOperationalSocket(OperationalSocket opSocket)
 {
     lock (Connection.RegisteredOperationalSockets)
     {
         return(Connection.RegisteredOperationalSockets.ContainsKey(opSocket.GetIdentifier()));
     }
 }