Skip to content

Commit

Permalink
update startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Naserien committed Apr 24, 2024
1 parent dd87c3a commit 5c699ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion C_Sharp/WEB/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
services.AddServerSideBlazor();
services.AddSingleton<WeatherForecastService>();
//services.AddSingleton<WeatherForecastService>();

// Register HttpClient as Scoped for dependency injection
services.AddScoped<HttpClient>();
Expand Down

0 comments on commit 5c699ea

Please sign in to comment.