| 1 | using Microsoft.AspNetCore.Hosting; |
| 2 | using Microsoft.Extensions.Configuration; |
| 3 | using Microsoft.Extensions.Hosting; |
| 4 | using Microsoft.Extensions.Logging; |
| 5 | using System; |
| 6 | using System.Collections.Generic; |
| 7 | using System.Linq; |
| 8 | using System.Threading.Tasks; |
| 9 | |
| 10 | namespace CsprojWebApplicationNetCore |
| 11 | { |
| 12 | public class Program |
| 13 | { |
| 14 | public static void Main(string[] args) |
| 15 | { |
| 16 | CreateHostBuilder(args).Build().Run(); |
| 17 | } |
| 18 | |
| 19 | public static IHostBuilder CreateHostBuilder(string[] args) => |
| 20 | Host.CreateDefaultBuilder(args) |
| 21 | .ConfigureWebHostDefaults(webBuilder => |
| 22 | { |
| 23 | webBuilder.UseStartup<Startup>(); |
| 24 | }); |
| 25 | } |
| 26 | } |