From a304c24b32c0327436bbd8c2853e60668e161b42 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Mon, 29 Dec 2025 00:41:52 +0100 Subject: Rename a lot of stuff, add Santiago real time --- src/Costasdev.Busurbano.ServiceViewer/Program.cs | 35 ------------------------ 1 file changed, 35 deletions(-) delete mode 100644 src/Costasdev.Busurbano.ServiceViewer/Program.cs (limited to 'src/Costasdev.Busurbano.ServiceViewer/Program.cs') diff --git a/src/Costasdev.Busurbano.ServiceViewer/Program.cs b/src/Costasdev.Busurbano.ServiceViewer/Program.cs deleted file mode 100644 index 847f9d5..0000000 --- a/src/Costasdev.Busurbano.ServiceViewer/Program.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Costasdev.ServiceViewer; -using Costasdev.ServiceViewer.Data; -using Microsoft.EntityFrameworkCore; - -var builder = WebApplication.CreateBuilder(args); - -builder.Services.AddControllersWithViews(); - -builder.Services.AddDbContext(db => -{ - var connectionString = builder.Configuration.GetConnectionString("Database"); - if (string.IsNullOrEmpty(connectionString)) - { - throw new InvalidOperationException("Connection string 'Database' is not configured."); - } - db.UseNpgsql(connectionString, npg => - { - npg.UseNetTopologySuite(); - }); -}); - -builder.Services.AddHttpClient(); -builder.Services.AddMemoryCache(); - -var app = builder.Build(); - -app.UseHttpsRedirection(); -app.UseRouting(); - -app.UseStaticFiles(); -app.MapStaticAssets(); - -app.MapControllers(); - -app.Run(); -- cgit v1.3