我正在某些项目上。我所需要的就是仅向一台计算机提供产品许可证,因此我添加了一个如图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)