Exemplo n.º 1
0
        private static WebHostBootstrap CreateHost(string[] args)
        {
            var builder = CreateHostBuilder(args);

            var hostBoot = WebHostBootstrap.ForHost(builder.Build())
                           .UseBootable <DatabaseBootable>()
                           .Create();

            return(hostBoot);
        }
 public static async Task <int> Main(string[] args)
 {
     return(await WebHostBootstrap.RunAsync <Startup>("http://*:9012"));
 }
Exemplo n.º 3
0
 public static async Task <int> Main()
 {
     return(await WebHostBootstrap.RunAsync <Startup>());
 }