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

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

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

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

        /// 
        /// Create the host builder.
        /// 
        /// 
        /// IHostBuilder
        public static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
                .ConfigureWebHostDefaults(webBuilder =>
                {
                   webBuilder.UseStartup()
                             .UseUrls("http://0.0.0.0:{{#serverPort}}{{serverPort}}{{/serverPort}}{{^serverPort}}8080{{/serverPort}}/");
                });
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy