Files

22 lines
697 B
C#

using GPW.CORE.Services;
using GPW.CORE.Smart8.Client;
using GPW.CORE.Smart8.Data;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
//CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("it-IT");
//CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("it-IT");
builder.RootComponents.Add<App>("#app");
// HttpClient di base (tipico)
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
// registra il servizio di stato
builder.Services.AddScoped<UserStateService>();
builder.Services.AddScoped<UIMessageService>();
await builder.Build().RunAsync();