Added experimental blazor hub options
This commit is contained in:
@@ -41,7 +41,13 @@ namespace Moonlight
|
|||||||
|
|
||||||
// Add services to the container.
|
// Add services to the container.
|
||||||
builder.Services.AddRazorPages();
|
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();
|
builder.Services.AddHttpContextAccessor();
|
||||||
|
|
||||||
// Databases
|
// Databases
|
||||||
|
|||||||
Reference in New Issue
Block a user