diff options
Diffstat (limited to 'DSACore')
-rw-r--r-- | DSACore/DSACore.csproj | 5 | ||||
-rw-r--r-- | DSACore/Hubs/ChatHub.cs | 4 | ||||
-rw-r--r-- | DSACore/Program.cs | 2 | ||||
-rw-r--r-- | DSACore/Properties/launchSettings.json | 2 | ||||
-rw-r--r-- | DSACore/Startup.cs | 4 |
5 files changed, 5 insertions, 12 deletions
diff --git a/DSACore/DSACore.csproj b/DSACore/DSACore.csproj index 44c4f8c..67bd4ab 100644 --- a/DSACore/DSACore.csproj +++ b/DSACore/DSACore.csproj @@ -5,12 +5,11 @@ </PropertyGroup> <ItemGroup> - <PackageReference Include="Microsoft.AspNetCore.App" /> - <PackageReference Include="Newtonsoft.Json" Version="11.0.2" /> + <Folder Include="wwwroot\" /> </ItemGroup> <ItemGroup> - <Folder Include="wwwroot\" /> + <PackageReference Include="Microsoft.AspNetCore.App" /> </ItemGroup> <ItemGroup> diff --git a/DSACore/Hubs/ChatHub.cs b/DSACore/Hubs/ChatHub.cs index 44d86e1..6af8c38 100644 --- a/DSACore/Hubs/ChatHub.cs +++ b/DSACore/Hubs/ChatHub.cs @@ -1,8 +1,8 @@ -using Microsoft.AspNetCore.SignalR; -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.AspNetCore.SignalR; namespace DSACore.Hubs { diff --git a/DSACore/Program.cs b/DSACore/Program.cs index 9bd6e6b..373a39e 100644 --- a/DSACore/Program.cs +++ b/DSACore/Program.cs @@ -14,8 +14,6 @@ namespace DSACore { public static void Main(string[] args) { - DSACore.DSA_Game.Dsa.Startup(); - CreateWebHostBuilder(args).Build().Run(); } diff --git a/DSACore/Properties/launchSettings.json b/DSACore/Properties/launchSettings.json index 889d022..bcc4406 100644 --- a/DSACore/Properties/launchSettings.json +++ b/DSACore/Properties/launchSettings.json @@ -4,7 +4,7 @@ "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { - "applicationUrl": "http://localhost:29492", + "applicationUrl": "http://localhost:2170", "sslPort": 44365 } }, diff --git a/DSACore/Startup.cs b/DSACore/Startup.cs index 1745ea4..2d0c2a3 100644 --- a/DSACore/Startup.cs +++ b/DSACore/Startup.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using DSACore.Hubs; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; @@ -27,8 +26,6 @@ namespace DSACore public void ConfigureServices(IServiceCollection services) { services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); - - services.AddSignalR(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. @@ -44,7 +41,6 @@ namespace DSACore } app.UseHttpsRedirection(); - app.UseSignalR(routes => { routes.MapHub<ChatHub>("/chatHub"); }); app.UseMvc(); } } |