From 03b0ecd55169e6f2a0d7f1ee526e023c2327c1a4 Mon Sep 17 00:00:00 2001 From: balbarak Date: Thu, 28 Jan 2021 17:54:02 +0300 Subject: [PATCH] enable detail error ! --- src/ScanX.Protocol/Startup.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ScanX.Protocol/Startup.cs b/src/ScanX.Protocol/Startup.cs index 82ab7d3..8f727c9 100644 --- a/src/ScanX.Protocol/Startup.cs +++ b/src/ScanX.Protocol/Startup.cs @@ -33,7 +33,10 @@ public void ConfigureServices(IServiceCollection services) .WithOrigins("*"); })); - services.AddSignalR(); + services.AddSignalR(opt=> + { + opt.EnableDetailedErrors = true; + }); services.AddControllersWithViews(); @@ -67,7 +70,9 @@ public void Configure(IApplicationBuilder app, IHostEnvironment env) name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); - endpoints.MapHub("/scanx"); + endpoints.MapHub("/scanx",config=> + { + }); }); } }