Added experimental blazor hub options
This commit is contained in:
parent
eaf32d60f5
commit
473eabf0f8
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue