Ejemplo n.º 1
0
        private static int Main(string[] args)
        {
            LogLevel logLevel = LogLevel.TryParse(Environment.GetEnvironmentVariable(WellKnownVariables.LogLevel));

            _app = new BuildApplication(new NLogLogger(logLevel));
            ExitCode exitCode = _app.RunAsync(args).Result;

            return(exitCode.Result);
        }
Ejemplo n.º 2
0
 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
 public void Configure(IApplicationBuilder app, IWebHostEnvironment env) => BuildApplication.ConfigurationApplicationBuilder(app, env);