Interface IWorkstationLicenseChecker
- Namespace
- CMS.Plugin.MesSuite.Abstractions
- Assembly
- CMS.Plugin.MesSuite.Abstractions.dll
工位授权检测接口
public interface IWorkstationLicenseChecker
Methods
CheckWorkstationLicenseAsync(int)
检查工位数量是否超过授权限制
Task<bool> CheckWorkstationLicenseAsync(int workstationCount)
Parameters
workstationCount
int当前工位数量
Returns
GetLicensedWorkstationCountAsync()
获取授权的最大工位数量
Task<int> GetLicensedWorkstationCountAsync()
Returns
ValidateWorkstationLicenseAsync(int)
检查工位数量是否超过授权限制,超过则抛出异常
Task ValidateWorkstationLicenseAsync(int workstationCount)
Parameters
workstationCount
int当前工位数量