Added experimental blazor hub options

This commit is contained in:
Marcel Baumgartner 2023-04-16 00:42:38 +02:00
parent eaf32d60f5
commit 473eabf0f8

View file

@ -41,7 +41,13 @@ namespace Moonlight
// Add services to the container.
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddServerSideBlazor()
.AddHubOptions(options =>
{
options.MaximumReceiveMessageSize = 10000000;
options.ClientTimeoutInterval = TimeSpan.FromSeconds(30);
options.HandshakeTimeout = TimeSpan.FromSeconds(10);
});
builder.Services.AddHttpContextAccessor();
// Databases