调整BaseWareHouseService
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Tnb.WarehouseMgr
|
||||
foreach (var serviceType in serviceTypes)
|
||||
{
|
||||
var callerName = serviceType.GetCustomAttribute<CallerAttribute>()?.Name ?? string.Empty;
|
||||
if (callerName.IsNullOrEmpty() && !serviceType.IsNull())
|
||||
if (!callerName.IsNullOrEmpty())
|
||||
{
|
||||
var obj = Activator.CreateInstance(serviceType) as IWHStorageService;
|
||||
if (obj == null) continue;
|
||||
|
||||
Reference in New Issue
Block a user