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