Blame view

WebMvc/Program.cs 472 Bytes
霍尔 authored
1
2
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
gy.huang authored
3
using System.IO;
霍尔 authored
4
5
6
7
8
9
10
11
12
13
14
15

namespace WebMvc
{
    public class Program
    {
        public static void Main(string[] args)
        {
            CreateWebHostBuilder(args).Build().Run();
        }

        public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
gy.huang authored
16
                .UseUrls("http://*:23512")
霍尔 authored
17
18
19
                .UseStartup<Startup>();
    }
}