Files
aviq-second-boilerplate/Webshop.App/Program.cs
T
2026-03-22 00:29:34 +01:00

21 lines
875 B
C#

using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Webshop.App;
using Webshop.App.Services;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddHttpClient<IEmployeeDataService, EmployeeDataService>(
client => client.BaseAddress = new Uri("https://localhost:7039"));
builder.Services.AddHttpClient<ICountryDataService, CountryDataService>(
client => client.BaseAddress = new Uri("https://localhost:7039"));
builder.Services.AddHttpClient<IJobCategoryDataService, JobCategoryDataService>(
client => client.BaseAddress = new Uri("https://localhost:7039"));
builder.Services.AddScoped<ApplicationState>();
builder.Services.AddLocalStorageServices();
await builder.Build().RunAsync();