SetMeteredKey
MeteredLicense.SetMeteredKey method
设置计量的公钥和私钥。
public void SetMeteredKey(string publicKey, string privateKey)
范围 | 类型 | 描述 |
---|---|---|
publicKey | String | 公钥。 |
privateKey | String | 私钥。 |
评论
如果你购买的是计量许可证,在启动应用程序时,应该调用这个API,正常情况下,这样就足够了。 但是,如果总是无法上传消费数据,超过24小时,License会被设置为评估状态, 为了避免这种情况,你应该定期检查License状态,如果是评估状态,再次调用这个API。
也可以看看
- class MeteredLicense
- 命名空间 Aspose.Zip
- 部件 Aspose.Zip