From ce81b993fd271be9552799eabb324d5c7ca1c5bb Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 10 Feb 2019 23:03:55 +0000 Subject: Made project for ASP.NET server --- Server/Program.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Server/Program.cs (limited to 'Server/Program.cs') diff --git a/Server/Program.cs b/Server/Program.cs new file mode 100644 index 0000000..4144500 --- /dev/null +++ b/Server/Program.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; + +namespace Server +{ + public class Program + { + public static void Main(string[] args) + { + CreateWebHostBuilder(args).Build().Run(); + } + + public static IWebHostBuilder CreateWebHostBuilder(string[] args) => + WebHost.CreateDefaultBuilder(args) + .UseStartup(); + } +} -- cgit v1.2.3-13-gbd6f From ad87992aedee7dca4c784f867fffb2ade05aeb9b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 11 Feb 2019 15:41:41 +0000 Subject: Formatted code for Program.cs --- Server/Program.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Server/Program.cs') diff --git a/Server/Program.cs b/Server/Program.cs index 4144500..9db50bb 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -8,12 +8,9 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; -namespace Server -{ - public class Program - { - public static void Main(string[] args) - { +namespace Server { + public class Program { + public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } -- cgit v1.2.3-13-gbd6f