ServiceStack,默认现在6000次每小时
需要破解,
破解方法:
下载路径
https://github.com/ServiceStack/ServiceStack.Text
找到LicenseUtils类:
修改 ServiceStack.text源代码6000限制
方法:直接修改 LicenseUtils里面的ApprovedUsage,直接return
代码如下
public static void ApprovedUsage(LicenseFeature licenseFeature, LicenseFeature requestedFeature,
int allowedUsage, int actualUsage, string message)
{
return;//新增return
var hasFeature = (requestedFeature & licenseFeature) == requestedFeature;
if (hasFeature)
return;
if (actualUsage > allowedUsage)
throw new LicenseException(message.Fmt(allowedUsage)).Trace();
}
编译生成ServiceStack.Text.dll,在.netstandard2.0目录
引用新的dll
这短短的一生我们最终都会失去,不妨大胆一些,爱一个人,攀一座山,追一个梦……