与任务执行,新增信号量锁,解决并发环境下数据的一致性问题
This commit is contained in:
@@ -54,8 +54,10 @@ namespace Tnb.WarehouseMgr
|
||||
public class BaseWareHouseService : IOverideVisualDevService, IDynamicApiController, ITransient
|
||||
{
|
||||
private static Lazy<Dictionary<string, IWHStorageService>> _stroageMapLazy;
|
||||
private static Dictionary<string, IWHStorageService> _storeMap = new(StringComparer.OrdinalIgnoreCase);
|
||||
public OverideVisualDevFunc OverideFuncs { get; } = new OverideVisualDevFunc();
|
||||
public static SemaphoreSlim s_taskExecuteSemaphore = new SemaphoreSlim(1);
|
||||
|
||||
|
||||
|
||||
private IEventPublisher _eventPublisher;
|
||||
|
||||
@@ -68,10 +70,6 @@ namespace Tnb.WarehouseMgr
|
||||
|
||||
|
||||
|
||||
/*public BaseWareHouseService(ChannelWriter<NotifyMessage>? channelWriter = default)
|
||||
{
|
||||
_channelWriter = channelWriter;
|
||||
}*/
|
||||
|
||||
static BaseWareHouseService()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user