-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
29 lines (24 loc) · 1.24 KB
/
Program.cs
File metadata and controls
29 lines (24 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using DiabeticsSystem.BlazorUI.Features.Customer.Domain.Usecase;
using DiabeticsSystem.BlazorUI.Features.Doctor.Domain.Usecase;
using DiabeticsSystem.BlazorUI.Features.Home.Domain.Usecase;
using DiabeticsSystem.BlazorUI.Features.PatientMovement.Domain.Usecase;
using DiabeticsSystem.BlazorUI.Features.Product.Domain.Usecase;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddFluentUIComponents();
builder.Services.AddDataGridEntityFrameworkAdapter();
builder.Services.AddScoped(sp => new HttpClient
{
BaseAddress = new Uri("http://localhost:5172/api/") //localhost:5172/
});
builder.Services.AddScoped<ICookie, Cookie>();
builder.Services.AddScoped<IUnitOfWork, UnitOfWork>();
builder.Services.AddScoped<IProductUsecase, ProductUsecase>();
builder.Services.AddScoped<ICustomerUsecase, CustomerUsecase>();
builder.Services.AddScoped<IPatientMovementUsecase, PatientMovementUsecase>();
builder.Services.AddScoped<IHomeUsecase, HomeUsecase>();
builder.Services.AddScoped<IDoctorUsecase, DoctorUsecase>();
await builder.Build().RunAsync();