Skip to content

Commit

Permalink
enable detail error !
Browse files Browse the repository at this point in the history
  • Loading branch information
looksharp committed Jan 28, 2021
1 parent 30c5498 commit 03b0ecd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ScanX.Protocol/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public void ConfigureServices(IServiceCollection services)
.WithOrigins("*");
}));

services.AddSignalR();
services.AddSignalR(opt=>
{
opt.EnableDetailedErrors = true;
});

services.AddControllersWithViews();

Expand Down Expand Up @@ -67,7 +70,9 @@ public void Configure(IApplicationBuilder app, IHostEnvironment env)
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");

endpoints.MapHub<ScanXProtocol>("/scanx");
endpoints.MapHub<ScanXProtocol>("/scanx",config=>
{
});
});
}
}
Expand Down

0 comments on commit 03b0ecd

Please sign in to comment.