BSubMenuBase 的 SemaphoreSlim 属性应该是只读属性,同时应该释放
lindexi opened this issue · comments
lindexi commented
这个属性应该不允许有这个类里面有那个代码修改这个锁的实例,所以 private set
应该是需要去掉的
另外 SemaphoreSlim 官方是推荐调用 Dispose 释放的哦,请看 SemaphoreSlim.Dispose Method (System.Threading) | Microsoft Docs
宇辰 commented
OK,感谢提醒