All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aspnetcore.2.0.Program.mustache Maven / Gradle / Ivy

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

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

        /// 
        /// Build Web Host
        /// 
        /// 
        /// Webhost
        public static IWebHost BuildWebHost(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup()                
                .UseUrls("http://0.0.0.0:{{#serverPort}}{{serverPort}}{{/serverPort}}{{^serverPort}}8080{{/serverPort}}/")
                .Build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy