Exemple #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());
        }