github.com/SupersunnySea/draft@v0.16.0/examples/example-dotnet/Program.cs (about) 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Threading.Tasks; 6 using Microsoft.AspNetCore.Hosting; 7 8 namespace WebApplication 9 { 10 public class Program 11 { 12 public static void Main(string[] args) 13 { 14 var host = new WebHostBuilder() 15 .UseKestrel() 16 .UseContentRoot(Directory.GetCurrentDirectory()) 17 .UseIISIntegration() 18 .UseStartup<Startup>() 19 .Build(); 20 21 host.Run(); 22 } 23 } 24 }