Table of Contents

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

Task<bool>

true表示未超过限制,false表示已超过限制

GetLicensedWorkstationCountAsync()

获取授权的最大工位数量

Task<int> GetLicensedWorkstationCountAsync()

Returns

Task<int>

授权的最大工位数量

ValidateWorkstationLicenseAsync(int)

检查工位数量是否超过授权限制,超过则抛出异常

Task ValidateWorkstationLicenseAsync(int workstationCount)

Parameters

workstationCount int

当前工位数量

Returns

Task

A Task representing the asynchronous operation.