private void CheckExistAndInsert(HotUpdateServiceDescriptor model) { var old = HotUpdateList.FirstOrDefault(c => c.AssemblyObj.GetName().Name == model.AssemblyObj.GetName().Name&& c.ServiceType.Name == model.ServiceType.Name); if (old != null) { HotUpdateList.Remove(old); HotUpdateList.Add(model); //old = ; } else { HotUpdateList.Add(model); } }
public HotUpdateServiceDescriptor[] GetHotUpdateList() { return(HotUpdateList.ToArray()); }