由于Portable.Licensing中缺少文档,我想知道.WithMaximumUtilization(1)在生成许可证时会做什么?这是否意味着许可证允许1个安装?如果是这样的话,它是如何验证的?
var license = License.New()
.WithUniqueIdentifier(Guid.NewGuid())
.As(LicenseType.Trial)
.ExpiresAt(DateTime.Now.AddDays(30))
.WithMaximumUtilization(1) // What does this do?
.WithProductFeatures(new Dictionary<string, string>
{
{"Sales Module", "yes"},
{"Purchase Module", "yes"},
{"Maximum Transactions", "10000"}
})
.LicensedTo("John Doe", "john.doe@example.com")
.CreateAndSignWithPrivateKey(privateKey, passPhrase);发布于 2019-02-13 02:42:52
该值仅分配给license.Quantity属性。
您可以在验证许可证时随心所欲地使用它。
https://stackoverflow.com/questions/51961644
复制相似问题