这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
colin cae12ee2cb upgrade abp framework to 7.2.1 3 years ago
..
LINGYUN/Abp/Idempotent upgrade abp framework to 7.2.1 3 years ago
FodyWeavers.xml feat(idempotent): add idempotent support 3 years ago
FodyWeavers.xsd feat(idempotent): add idempotent support 3 years ago
LINGYUN.Abp.Idempotent.csproj feat(idempotent): add idempotent support 3 years ago
README.md feat(idempotent): add idempotent support 3 years ago

README.md

LINGYUN.Abp.Idempotent

接口幂等性检查模块

配置使用

[DependsOn(typeof(AbpIdempotentModule))]
public class YouProjectModule : AbpModule
{
	public override void ConfigureServices(ServiceConfigurationContext context)
	{
		Configure<AbpIdempotentOptions>(options =>
		{
			// 全局启用幂等检查
			options.IsEnabled = true;
			// 默认每个接口提供30秒超时
			options.DefaultTimeout = 30000;
			// 幂等token名称, 通过HttpHeader传递
			options.IdempotentTokenName = "X-With-Idempotent-Token";
			// 幂等校验失败时Http响应代码
			options.HttpStatusCode = 429;
        });
	}
}

配置项说明

其他