diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-11-16 06:15:19 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-11-16 06:15:19 +0100 |
| commit | e2258afd01e86e0d46a03fa910412fa0827b2b5b (patch) | |
| tree | b70c2d13720610be4518918481ee01aad2ccefec /src/Program.cs | |
| parent | a7e7d83057503262a9f2b56c4fb0c18e3f8ea15c (diff) | |
| download | lettnytt-e2258afd01e86e0d46a03fa910412fa0827b2b5b.tar.xz lettnytt-e2258afd01e86e0d46a03fa910412fa0827b2b5b.zip | |
fix: Correct injection of memory cache
Diffstat (limited to 'src/Program.cs')
| -rw-r--r-- | src/Program.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Program.cs b/src/Program.cs index d751102..0b7930a 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -1,18 +1,16 @@ global using I2R.LightNews.Services; global using I2R.LightNews.Models; global using IOL.Helpers; -using System.Globalization; var builder = WebApplication.CreateBuilder(args); builder.Services.AddHttpClient(); +builder.Services.AddMemoryCache(); builder.Services.AddScoped<GrabberService>(); builder.Services.AddRazorPages().AddRazorRuntimeCompilation(); var app = builder.Build(); -CultureInfo.CurrentCulture = new CultureInfo("nb-no"); -CultureInfo.CurrentUICulture = new CultureInfo("nb-no"); app.UseStaticFiles(); app.UseStatusCodePages(); app.UseRouting(); |
