21 lines
875 B
C#
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();
|