public bool RegisterDISCOService(ICDEDiscoService pScanner) { if (pScanner == null || pScanner.GetBaseThing() == null) { return(false); } if (MyDiscoScanners.Any(s => s.Key == pScanner.GetBaseThing().cdeMID)) { return(false); } pScanner.StartService(this); MyDiscoServices.TryAdd(pScanner.GetBaseThing().cdeMID, pScanner); return(true); }