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

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

There is a newer version: 1.0.54
Show newest version
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;
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()
                {{#serverUrl}}
                .UseUrls("{{serverUrl}}")
                {{/serverUrl}}
                .Build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy