0a5ab058a6
- Angular 12 application with PrimeNG components - 5 existing Cypress e2e test suites - SCSS styling with BEM naming convention - i18n support (10 languages) - Leaflet map integration - Complete component hierarchy and routing structure This baseline will be used for Angular → React migration.
47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using System;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Hosting;
|
|
using Serilog;
|
|
using Serilog.Events;
|
|
|
|
namespace Aeroflot.Flights.Web
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
Log.Logger = new LoggerConfiguration()
|
|
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
|
|
.Enrich.FromLogContext()
|
|
.WriteTo.Debug()
|
|
.WriteTo.Console()
|
|
.CreateBootstrapLogger();
|
|
|
|
Log.Information("Starting up");
|
|
|
|
var host = CreateHostBuilder(args).Build();
|
|
Log.Information("Host created.");
|
|
|
|
try
|
|
{
|
|
host.Run();
|
|
}
|
|
finally
|
|
{
|
|
Log.CloseAndFlush();
|
|
}
|
|
}
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args)
|
|
{
|
|
var host = Host.CreateDefaultBuilder(args)
|
|
.UseSerilog((context, configuration) => configuration.ReadFrom.Configuration(context.Configuration))
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
|
{
|
|
webBuilder.UseStartup<Startup>();
|
|
});
|
|
return host;
|
|
}
|
|
}
|
|
}
|