diff options
| author | mo khan <mo.khan@gmail.com> | 2019-10-19 20:56:41 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2019-10-19 20:56:41 -0600 |
| commit | 071d94fc5f212081dfafc9a2340c7822a7eed45b (patch) | |
| tree | a1a273da1b1df9851c0c1ab9a82df69472c201da /src/web.api/Program.cs | |
initial commit
Diffstat (limited to 'src/web.api/Program.cs')
| -rw-r--r-- | src/web.api/Program.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/web.api/Program.cs b/src/web.api/Program.cs new file mode 100644 index 0000000..7b70757 --- /dev/null +++ b/src/web.api/Program.cs @@ -0,0 +1,26 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Logging;
+
+namespace web.api
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ CreateHostBuilder(args).Build().Run();
+ }
+
+ public static IHostBuilder CreateHostBuilder(string[] args) =>
+ Host.CreateDefaultBuilder(args)
+ .ConfigureWebHostDefaults(webBuilder =>
+ {
+ webBuilder.UseStartup<Startup>();
+ });
+ }
+}
|
