fail: Microsoft.AspNetCore.SignalR.HubConnectionHandler[2]
Error when processing requests.
System.IO.InvalidDataException: The maximum message size of 32768B was exceeded.
The message size can be configured in AddHubOptions. |
services.AddServerSideBlazor();
services.AddServerSideBlazor().AddHubOptions(o =>
{
o.MaximumReceiveMessageSize = 102400000;
}); |
<ListViewTemplates>
<Template>
@{
….
….
<div id="list-logo" onclick="event.stopPropagation();">
<EjsButton Content="select"
@onmousedown="@(e => OnSelectListViewItem(currentData))"></EjsButton>
</div>
</div>
}
</Template>
</ListViewTemplates>
@code {
….
….
….
public void OnSelectListViewItem(NewsDataModel currentData)
{
Console.WriteLine(currentData.Description);
Console.WriteLine(currentData.Content);
}
} |