mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-12-06 08:38:55 +08:00
启用ConnectionLimiterCircuitHandler
This commit is contained in:
@@ -208,10 +208,7 @@ public class Startup : AppStartup
|
||||
|
||||
var websiteOptions = App.GetConfig<WebsiteOptions>("Website");
|
||||
|
||||
if (websiteOptions.BlazorConnectionLimitEnable)
|
||||
{
|
||||
services.AddSingleton<CircuitHandler, ConnectionLimiterCircuitHandler>();
|
||||
}
|
||||
services.AddSingleton<CircuitHandler, ConnectionLimiterCircuitHandler>();
|
||||
if (websiteOptions.Demo)
|
||||
{
|
||||
authenticationBuilder.AddOAuth<GiteeOAuthOptions, AdminOAuthHandler<GiteeOAuthOptions>>("Gitee", "Gitee", options =>
|
||||
|
||||
Reference in New Issue
Block a user