from TheLaughingMan on gitter June 17, 2021 10:24 AM
Created
June 17, 2021 09:41
-
-
Save SQL-MisterMagoo/9cb2e4b14c46aa2326c8e8b6a59a5112 to your computer and use it in GitHub Desktop.
Example Blazor Server SignalR config for a busy VPN network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this is how the default project looks like: | |
services.AddServerSideBlazor(); | |
//this is how it looks now: | |
services.AddServerSideBlazor(options => | |
{ | |
options.DetailedErrors = false; | |
options.DisconnectedCircuitMaxRetained = 100; | |
options.DisconnectedCircuitRetentionPeriod = TimeSpan.FromMinutes(3); | |
options.JSInteropDefaultCallTimeout = TimeSpan.FromMinutes(1); | |
options.MaxBufferedUnacknowledgedRenderBatches = 10; | |
}) | |
.AddHubOptions(options => | |
{ | |
options.ClientTimeoutInterval = TimeSpan.FromSeconds(30); | |
options.EnableDetailedErrors = false; | |
options.HandshakeTimeout = TimeSpan.FromSeconds(15); | |
options.KeepAliveInterval = TimeSpan.FromSeconds(15); | |
options.MaximumReceiveMessageSize = 32 * 1024; | |
options.StreamBufferCapacity = 10; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment