1
0

Program.cs 492 B

1234567891011121314151617181920
  1. using Microsoft.AspNetCore;
  2. using Microsoft.AspNetCore.Hosting;
  3. namespace WebApplicationSample
  4. {
  5. public class Program
  6. {
  7. public static void Main(string[] args)
  8. {
  9. CreateWebHostBuilder(args).Build().Run();
  10. }
  11. public static IWebHostBuilder CreateWebHostBuilder(string[] args)
  12. {
  13. return WebHost.CreateDefaultBuilder(args)
  14. .UseUrls("http://*:5000")
  15. .UseStartup<Startup>();
  16. }
  17. }
  18. }