计量类

Summary: Provides metered methods for integration

Module: aspose.imaging

Full Name: aspose.imaging.Metered

Constructors

Name描述
Metered()初始化此类的新实例。

Methods

Name描述
get_consumption_credit()获取消耗积分
get_consumption_quantity()获取消耗文件大小
set_metered_key(public_key, private_key)设置计量的公钥和私钥。
如果您购买了计量许可证,在启动应用程序时应调用此 API,通常这已足够。
但是,如果始终无法上传消耗数据且超过 24 小时,许可证将被设置为评估状态,
为避免这种情况,您应定期检查许可证状态,如果是评估状态,请再次调用此 API。

Constructor: Metered()

 Metered() 

初始化此类的新实例。

Method: get_consumption_credit() [static]

 get_consumption_credit() 

获取消耗积分

Returns

TypeDescription
System.Decimal消耗数量

Method: get_consumption_quantity() [static]

 get_consumption_quantity() 

获取消耗文件大小

Returns

TypeDescription
System.Decimal消耗数量

Method: set_metered_key(public_key, private_key)

 set_metered_key(public_key, private_key) 

设置计量的公钥和私钥。
如果您购买了计量许可证,在启动应用程序时应调用此 API,通常这已足够。
但是,如果始终无法上传消耗数据且超过 24 小时,许可证将被设置为评估状态,
为避免这种情况,您应定期检查许可证状态,如果是评估状态,请再次调用此 API。

Parameters:

参数TypeDescription
public_keystring公钥
private_keystring私钥