为什么 SignalR 连接 pedirod 是一个数组,而不是单个值?

Why SignalR connection pedirod is an array, not a single value?

我读了这个https://docs.microsoft.com/en-us/dotnet/standard/choosing-core-framework-server?toc=%2Faspnet%2Fcore%2Ftoc.json&bc=%2Faspnet%2Fcore%2Fbreadcrumb%2Ftoc.json&view=aspnetcore-3.0

.withAutomaticReconnect([0, 3000, 5000, 10000, 15000, 30000])
//.withAutomaticReconnect([0, 2000, 10000, 30000]) The default intervals.

为什么SignalR连接pedirod是一个数组,而不是单个值?比如

.withAutomaticReconnect(3000)

根据this文章,

Without any parameters, withAutomaticReconnect() configures the client to wait 0, 2, 10, and 30 seconds respectively before trying each reconnect attempt, stopping after four failed attempts.

当您覆盖默认值时,您应该提供一个数组来表示需要重试的次数。