aspnetcore.3.0.Program.mustache Maven / Gradle / Ivy
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}}/");
});
}
}