c# - 在 asp.net Portable.Licensing 中,.WithMaximumUtilization(1) 的含义和用途是什么?

标签 c# asp.net licensing

由于 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);

最佳答案

该值刚刚分配给 license.Quantity 属性。

您可以在验证许可证时随意使用它。

关于c# - 在 asp.net Portable.Licensing 中,.WithMaximumUtilization(1) 的含义和用途是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51961644/

相关文章:

安卓 : Github library using in Android Studio

c# - 在设计时将 DataGridView.DefaultCellStyle.NullValue 设置为 null 会在运行时添加行时引发错误

c# - C# 中的 NFA/DFA 实现

javascript - 带有 angularJS 的 ASP.NET 无法加载模板

c# - 如何让用户在 Web 应用程序中备份他们的数据?

windows - 如何使软件在 Windows 上的特定日期过期?

licensing - iText Java 库是免费的还是需要付费?

c# - 为什么 IEnumerable<T> 只有 "out"协变标志而不是 "in"c#?

c# - LINQ:无效的匿名类型成员声明符。匿名类型成员必须使用成员分配、简单名称或成员访问来声明

asp.net - 如何防止我的 ASP.NET 应用程序在我的开发环境中不断重新启动?