小编Sri*_*ale的帖子

使用Portable.Licensing如何验证属性硬件ID

我正在某些项目上。我所需要的就是仅向一台计算机提供产品许可证,因此我添加了一个如图3所示的附加属性硬件ID。我该如何验证它。在这方面帮助我。谢谢..

var license = Portable.Licensing.License.New()
                   .WithUniqueIdentifier(Guid.NewGuid())
                   .As(Portable.Licensing.LicenseType.Trial)
                   .ExpiresAt(DateTime.Now.AddDays(5))
                   .WithMaximumUtilization(Int32.Parse(User.Text))
                   .WithAdditionalAttributes(new Dictionary<String,String>{
                                               {"Hardware ID","12343"}
                                                })
                   .LicensedTo(name.Text, email.Text)
                   .CreateAndSignWithPrivateKey(privateKey, "212555555");
Run Code Online (Sandbox Code Playgroud)

c# licensing

5
推荐指数
1
解决办法
1001
查看次数

标签 统计

c# ×1

licensing ×1