From af74efccf8d21e6151022b71f3cacd3fa83024ee Mon Sep 17 00:00:00 2001 From: uzvkl Date: Tue, 11 Jun 2019 23:33:41 +0200 Subject: Seperate the Core from dsa gamelogic --- DSACore/Program.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 DSACore/Program.cs (limited to 'DSACore/Program.cs') diff --git a/DSACore/Program.cs b/DSACore/Program.cs new file mode 100644 index 0000000..8af0a74 --- /dev/null +++ b/DSACore/Program.cs @@ -0,0 +1,24 @@ +using DSALib.DSA_Game; +using DSALib.FireBase; +using Microsoft.AspNetCore; +using Microsoft.AspNetCore.Hosting; + +namespace DSACore +{ + public class Program + { + public static void Main(string[] args) + { + Database.GetGroup(0).Wait(); + Dsa.Startup(); + CreateWebHostBuilder(args).Build().Run(); + } + + public static IWebHostBuilder CreateWebHostBuilder(string[] args) + { + return WebHost.CreateDefaultBuilder(args) + .UseStartup() + .UseUrls("http://0.0.0.0:5000"); + } + } +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf