using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using System;

namespace MiddlewareDemo
{
    public class Program
    {
        public static void Main(string[] args)
        {
            BuildWebHost(args).Run();
        }

        public static IWebHost BuildWebHost(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
            // .UseUrls("http://q.cnblogs.com:5006")
            .UseStartup<Startup>()
            .Build();
    }
}
