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

handlebars.aspnetcore.2.1.Program.mustache Maven / Gradle / Ivy

There is a newer version: 1.0.54
Show newest version
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore;

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

        /// 
        /// Create the web host builder.
        /// 
        /// 
        /// IWebHostBuilder
        public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup(){{^serverUrl}};{{/serverUrl}}
                {{#serverUrl}}
                .UseUrls("{{serverUrl}}");
                {{/serverUrl}}
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy