diff options
Diffstat (limited to 'Blog/Program.cs')
| -rw-r--r-- | Blog/Program.cs | 8 |
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 @@ | |||
| 1 | using Blog.Components; | 1 | using Blog.Components; |
| 2 | using Microsoft.AspNetCore.Builder; | 2 | using Blog.Services; |
| 3 | using Microsoft.Extensions.DependencyInjection; | ||
| 4 | using Microsoft.Extensions.Hosting; | ||
| 5 | 3 | ||
| 6 | var builder = WebApplication.CreateBuilder(args); | 4 | var builder = WebApplication.CreateBuilder(args); |
| 7 | 5 | ||
| 8 | // Add services to the container. | 6 | // Add services to the container. |
| 9 | builder.Services.AddRazorComponents(); | 7 | builder.Services.AddRazorComponents(); |
| 10 | 8 | ||
| 9 | builder.Services.AddHttpClient(); | ||
| 10 | builder.Services.AddHybridCache(); | ||
| 11 | builder.Services.AddSingleton<BrpService>(); | ||
| 12 | |||
| 11 | var app = builder.Build(); | 13 | var app = builder.Build(); |
| 12 | 14 | ||
| 13 | // Configure the HTTP request pipeline. | 15 | // Configure the HTTP request pipeline. |