summaryrefslogtreecommitdiff
path: root/Blog/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Blog/Program.cs')
-rw-r--r--Blog/Program.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Blog/Program.cs b/Blog/Program.cs
index 0d38e90..a6b9c39 100644
--- a/Blog/Program.cs
+++ b/Blog/Program.cs
@@ -1,13 +1,15 @@
1using Blog.Components; 1using Blog.Components;
2using Microsoft.AspNetCore.Builder; 2using Blog.Services;
3using Microsoft.Extensions.DependencyInjection;
4using Microsoft.Extensions.Hosting;
5 3
6var builder = WebApplication.CreateBuilder(args); 4var builder = WebApplication.CreateBuilder(args);
7 5
8// Add services to the container. 6// Add services to the container.
9builder.Services.AddRazorComponents(); 7builder.Services.AddRazorComponents();
10 8
9builder.Services.AddHttpClient();
10builder.Services.AddHybridCache();
11builder.Services.AddSingleton<BrpService>();
12
11var app = builder.Build(); 13var app = builder.Build();
12 14
13// Configure the HTTP request pipeline. 15// Configure the HTTP request pipeline.