我正在进行某个项目。我只需要将产品许可证提供给一个计算机,所以我添加了一个附加属性硬件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");