diff --git a/WeatherDashboard.Web/Program.cs b/WeatherDashboard.Web/Program.cs index 0ece14d..73c34ba 100644 --- a/WeatherDashboard.Web/Program.cs +++ b/WeatherDashboard.Web/Program.cs @@ -5,7 +5,7 @@ var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllersWithViews(); builder.Services.AddHttpClient(); -builder.Services.AddTransient(); +builder.Services.AddSingleton(); var app = builder.Build();