Files
Hushian/Presentation/HushianWebApp/Program.cs

24 lines
1.0 KiB
C#
Raw Normal View History

2025-07-11 20:37:28 +03:30
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using HushianWebApp;
using HushianWebApp.Services;
using HushianWebApp.Service;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
2025-09-03 20:05:35 +03:30
string BaseAddress=builder.Configuration.GetSection("BaseAddress").Value;
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(BaseAddress) });
2025-07-11 20:37:28 +03:30
builder.Services.AddScoped<ILocalStorageService, LocalStorageService>();
builder.Services.AddScoped<BaseController>();
builder.Services.AddScoped<AuthService>();
builder.Services.AddScoped<VerificationService>();
builder.Services.AddScoped<UserService>();
builder.Services.AddScoped<CompanyService>();
builder.Services.AddScoped<GroupService>();
2025-08-16 01:46:25 +03:30
builder.Services.AddScoped<PromptService>();
2025-07-11 20:37:28 +03:30
builder.Services.AddScoped<ConversationService>();
2025-07-29 00:00:16 +03:30
builder.Services.AddScoped<ChatService>();
2025-07-11 20:37:28 +03:30
builder.Services.AddBlazorBootstrap();
await builder.Build().RunAsync();