Finishddd
This commit is contained in:
@@ -14,6 +14,7 @@ using Microsoft.Extensions.Options;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
|
||||
using TechHelper.Client.AI;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using TechHelper.Context;
|
||||
|
||||
|
||||
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||
@@ -26,12 +27,16 @@ builder.Services.AddOidcAuthentication(options =>
|
||||
builder.Configuration.Bind("Local", options.ProviderOptions);
|
||||
});
|
||||
|
||||
builder.Services.AddAutoMapper(typeof(AutoMapperProFile).Assembly);
|
||||
|
||||
|
||||
builder.Services.Configure<ApiConfiguration>(builder.Configuration.GetSection("ApiConfiguration"));
|
||||
builder.Services.AddAuthorizationCore();
|
||||
builder.Services.AddCascadingAuthenticationState();
|
||||
builder.Services.AddLocalStorageServices();
|
||||
|
||||
|
||||
|
||||
builder.Services.AddScoped<IAuthenticationClientService, AuthenticationClientService>();
|
||||
builder.Services.AddScoped<IExamService, ExamService>();
|
||||
builder.Services.AddScoped<AuthenticationStateProvider, AuthStateProvider>();
|
||||
@@ -41,7 +46,6 @@ builder.Services.AddScoped<IEmailSender, QEmailSender>();
|
||||
builder.Services.AddScoped<HttpInterceptorHandlerService>();
|
||||
builder.Services.AddScoped<RefreshTokenService2>();
|
||||
builder.Services.AddScoped<IAIService, AiService>();
|
||||
|
||||
builder.Services.AddHttpClient("WebApiClient", client =>
|
||||
{
|
||||
var baseAddress = builder.Configuration.GetSection("ApiConfiguration:BaseAddress").Value;
|
||||
|
Reference in New Issue
Block a user