Example #1
0
        public static Task Run <TArea>(ConfigureWebApp configure) where TArea : TimelineArea, new()
        {
            var host = WebHost.CreateDefaultBuilder();

            configure.ApplyHost(host);
            configure.ApplyApp(host);
            configure.ApplyAppConfiguration(host);
            configure.ApplyServices <TArea>(host);
            configure.ApplySerilog(host);

            return(host.Build().RunAsync());
        }
Example #2
0
 internal WebAppHost(ConfigureWebApp configure)
 {
     _configure = configure;
 }
Example #3
0
 public static Task Run <TArea>(ConfigureWebApp configure) where TArea : TimelineArea, new() =>
 new WebAppHost <TArea>(configure).Run();