mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-06-13 14:38:43 +00:00
16 lines
335 B
C#
16 lines
335 B
C#
|
|
using Esiur.Tests.RPC.SignalRServer;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
builder.Services.AddSignalR(o =>
|
|
{
|
|
o.EnableDetailedErrors = true;
|
|
o.MaximumReceiveMessageSize = 10 * 1024 * 1024; // 10 MB
|
|
});
|
|
|
|
var app = builder.Build();
|
|
|
|
app.MapHub<EchoHub>("/hub/echo");
|
|
app.Urls.Add("http://0.0.0.0:5200");
|
|
app.Run(); |