mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 19:13:26 +08:00
【调整】移除第三方AspNetCoreRateLimit限流组件,使用.net8自带的RateLimiter特性。
This commit is contained in:
@@ -89,10 +89,6 @@ namespace CoreCms.Net.Configuration
|
||||
/// </summary>
|
||||
public static readonly bool MiddlewareIpLogEnabled = AppSettingsHelper.GetContent("Middleware", "IPLog", "Enabled").ObjToBool();
|
||||
/// <summary>
|
||||
/// 是否开启IP限流
|
||||
/// </summary>
|
||||
public static readonly bool MiddlewareIpRateLimitEnabled = AppSettingsHelper.GetContent("Middleware", "IpRateLimit", "Enabled").ObjToBool();
|
||||
/// <summary>
|
||||
/// 记录请求与返回数据
|
||||
/// </summary>
|
||||
public static readonly bool MiddlewareRequestResponseLogEnabled = AppSettingsHelper.GetContent("Middleware", "RequestResponseLog", "Enabled").ObjToBool();
|
||||
@@ -112,14 +108,6 @@ namespace CoreCms.Net.Configuration
|
||||
/// 是否开启记录到数据库模式
|
||||
/// </summary>
|
||||
public static readonly bool MiddlewareRecordAccessLogsEnabledDbMode = AppSettingsHelper.GetContent("Middleware", "RecordAccessLogs", "EnabledDbMode").ObjToBool();
|
||||
/// <summary>
|
||||
/// 并发限制(最大并发请求数)
|
||||
/// </summary>
|
||||
public static readonly int MiddlewareConcurrencyLimiterMaxConcurrentRequests = AppSettingsHelper.GetContent("Middleware", "ConcurrencyLimiter", "MaxConcurrentRequests").ObjToInt(100);
|
||||
/// <summary>
|
||||
/// 并发限制(最大请求数)
|
||||
/// </summary>
|
||||
public static readonly int MiddlewareConcurrencyLimiterRequestQueueLimit = AppSettingsHelper.GetContent("Middleware", "ConcurrencyLimiter", "RequestQueueLimit").ObjToInt(100);
|
||||
#endregion
|
||||
|
||||
#region HangFire定时任务================================================================================
|
||||
|
||||
Reference in New Issue
Block a user