varianta proiect care merge

This commit is contained in:
andrei-mihnea-cerbu
2024-04-08 14:23:44 +03:00
parent 370bbdedcd
commit 897193c865
333 changed files with 1090 additions and 98769 deletions
+9 -4
View File
@@ -1,6 +1,9 @@
using HealthcareManagerUI.Components;
using HealthcareManagerUI.Services.Authentication;
using Blazored.LocalStorage;
using HealthcareManagerUI;
using HealthcareManagerUI.Services.Http;
using HealthcareManagerUI.Services.TokenService;
using AuthenticationService = Microsoft.AspNetCore.Authentication.AuthenticationService;
using IAuthenticationService = Microsoft.AspNetCore.Authentication.IAuthenticationService;
var builder = WebApplication.CreateBuilder(args);
@@ -8,12 +11,14 @@ var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
builder.Services.AddScoped<IHttpService>(provider =>
builder.Services.AddScoped<IRequestHttpService>(provider =>
{
var configuration = provider.GetRequiredService<IConfiguration>();
return new HttpService(configuration);
return new RequestHttpService(configuration);
});
builder.Services.AddScoped<IAuthenticationService, AuthenticationService>();
builder.Services.AddBlazoredLocalStorage();
builder.Services.AddScoped<ITokenService, TokenService>();
var app = builder.Build();