...
This commit is contained in:
21
Presentation/HushianWebApp/Program.cs
Normal file
21
Presentation/HushianWebApp/Program.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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");
|
||||
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5137/api/") });
|
||||
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>();
|
||||
builder.Services.AddScoped<ConversationService>();
|
||||
builder.Services.AddBlazorBootstrap();
|
||||
await builder.Build().RunAsync();
|
||||
Reference in New Issue
Block a user