- ABP Framework version: v8.0.1
- UI Type: Blazor Server
- Database System: EF Core (SQL Server)
I'm having problem with blazor's SignalR limitation on buffers to manage incoming and outgoing messages. I want to set MaximumReceiveMessageSize is 0 for no-limitation, but I just want to do this on a specific page, not entire of application. Is it possible? What I should do in this case?
Configure<HubOptions>(options =>
{
options.AddFilter<AbpRefreshEditionIdFilter>();
options.DisableImplicitFromServicesParameters = true;
options.MaximumReceiveMessageSize = 0;
});
5 Answer(s)
-
0
hi
Yes, You can try to set this option for a specified hub.
services.AddSignalR().AddHubOptions<YourHub>(options => { options.MaximumReceiveMessageSize = 0; });
-
0
Thanks, I can add HubOptions successfully, but how to use it on specific blazor page? Could you pls give me example to do that?
-
0
hi
It is only related to the hub class and has nothing to do with the blazor page.
It is not possible to use it on specific blazor page
-
0
Sorry, my first question is how to set different MaximumReceiveMessageSize to different blazor page. Is it possible? Do you mean it's impossible to do that?
-
0
hi
It is not possible. It is only related to the hub .