From fe476f23bfd9772da16d584063bbc5a2fb38ef71 Mon Sep 17 00:00:00 2001 From: David Glass Date: Fri, 13 Sep 2019 17:32:44 +0100 Subject: [PATCH] Updates for changed to .NET Core 3 (#6) --- Startup.cs | 11 ++++++----- StreamR.csproj | 7 ------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/Startup.cs b/Startup.cs index 5c7a1fa..fc94f8c 100644 --- a/Startup.cs +++ b/Startup.cs @@ -51,12 +51,13 @@ namespace StreamR app.UseStaticFiles(); app.UseCookiePolicy(); - app.UseSignalR(route => - { - route.MapHub("/stream"); - }); + app.UseRouting(); - app.UseMvc(); + app.UseEndpoints(endpoints => + { + endpoints.MapRazorPages(); + endpoints.MapHub("/stream"); + }); } } } diff --git a/StreamR.csproj b/StreamR.csproj index 777fae2..2c6c1b4 100644 --- a/StreamR.csproj +++ b/StreamR.csproj @@ -5,11 +5,4 @@ InProcess - - - - - - -